Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jekyll timezone error? #126

Open
changwh opened this issue Mar 17, 2019 · 1 comment
Open

jekyll timezone error? #126

changwh opened this issue Mar 17, 2019 · 1 comment

Comments

@changwh
Copy link

changwh commented Mar 17, 2019

当我在2019-03-17 06:10:00时新建一篇博客,在md文件的head中填写的日期为date: 2019-03-17 06:07:00,使用jykell s在本地浏览时将会Skip这个页面,输入jykell build --verbose提示xxx.md has a future date

进行修改:

  • 将md文件的head中的日期修改为date: 2019-03-17 06:07:00 +0800

再次使用jykell s在本地浏览时显示正常且能够正常使用,但是push到github中时,日期却变为了2019-03-16

再次进行修改:

  • 将md文件的head中的日期修改为date: 2019-03-17 06:07:00
  • _config.yml中添加timezone: Asia/Shanghai

使用jykell s在本地浏览不能正常使用,依然Skip了,但是push到了github却一切正常。

请问这是什么原因呢?应该如何解决?

参见:https://changwh.github.io/2019/03/17/timezone-issue-in-jekyll/

@changwh
Copy link
Author

changwh commented Mar 17, 2019

可能是tzinfo版本的问题,参见:jekyll #7565,将tzinfo降级至1.2.0即可。但不知是否就是这个原因引起的,具体的解决方法参见:https://changwh.github.io/2019/03/17/timezone-issue-in-jekyll/ ,各位有兴趣可以试试。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant