-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
timezone的配置问题 #2063
Comments
我的把_config目录中的timezone配置去掉了就没问题了 |
现在我也只能通过timezone留空的办法了。 |
请问使用的是哪个主题呢? |
@NoahDragon 我能为此做些什么? |
@sayll 从以上那段代码可以看出,front matter中的Date被认为是UTC时间。所以要使timezone运行正常,需要在Date中写入当前的UTC时间。这些都是从上面代码片段解读而来,等有时间我验证一下。 |
@NoahDragon 嗯嗯,在此多谢。 |
I don't know if this solves the issue, but I always specify the timezone in the date of my posts. For example: I propose that Hexo should always append the timezone in the generated date. This way it might be more flexible when the site is configured to display local time to visitors. |
对于发布日期小时为0时的文章,本机编译和travis上编译出来的日期相差一天,在配置文件中指定了timezone依然有次问题。
Environment Info
Node version(
node -v
)_config.yml
日期
设置示例,注意其中date
的配置中小时为00
如上配置示例,当
date
为2016-02-19 00:55:35
时,在本地编译出来的文章路径为/2016/02/19
,但是在travis上面变成了/2016/02/18
The text was updated successfully, but these errors were encountered: