fix:Leetcode打卡时间的的问题 (#2425)

This commit is contained in:
Nathan
2019-06-18 16:02:14 +08:00
committed by DIYgod
parent 70d885b4b9
commit 9b16216e7e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ $ docker pull diygod/rsshub
然后运行 RSSHub 即可
```bash
$ docker run -d --name rsshub -p 1200:1200 diygod/rsshub
$ docker run -d -e "TZ=Asia/Shanghai" --name rsshub -p 1200:1200 diygod/rsshub
```
在浏览器中打开 [http://127.0.0.1:1200/](http://127.0.0.1:1200/), enjoy it! ✅
+1 -1
View File
@@ -31,7 +31,7 @@ const ProcessFeed = async (list) => {
n = n + parseInt(pubDate.substring(n1 - 3, n1 - 1)) * 365;
}
if (n2 !== -1) {
n = n + parseInt(pubDate.substring(n2 - 3, n3 - 1)) * 30;
n = n + parseInt(pubDate.substring(n2 - 3, n2 - 1)) * 30;
}
if (n3 !== -1) {
n = n + parseInt(pubDate.substring(n3 - 3, n3 - 1)) * 7;