2014-04-01 28 views
3

我使用github页面发布my blog。最近我注意到其中一篇帖子的固定链接被破解了。为什么github页面显示我的文章(w/Jekyll)的日期不同?

used to be这样的:

http://strilanc.com/quantum/2014/03/07/Building-your-own-Quantum-Fourier-Transform.html

,但现在它是这样的:

http://strilanc.com/quantum/2014/03/06/Building-your-own-Quantum-Fourier-Transform.html

为后显示的日期也是一个d唉早于什么在filename and metadata at the start of the contents规定:

文件名:2014年3月7日 - 构建你自己量子傅立叶Transform.markdown

--- 
layout: post 
title: "Building your own Quantum Fourier Transform" 
date: 2014-03-07 0:30:01 
categories: quantum 
--- 

更奇怪的是,本地服务器我运行jekyll serve确实显示正确的日期,并使用正确的固定链接。

这是怎么回事?

回答

2

我对此并不是100%肯定的,但它有可能是因为当时没有时区信息,它在构建时会被转换吗?

就像一个供参考,如果你不知道,那么这个日期是没有必要的,除非你需要以一个更详细的方式维护文章的顺序比文件名中的日期。

这里没有确定的答案只是一些想法和意见。

+0

你钉了它。发生了时区转换,推迟了整个午夜的时间。我把时间转移到东部夏令时,这一天又回到了正确的价值。 –

+1

有一个问题已经提交给Jekyll回购:https://github.com/jekyll/jekyll/issues/1069 –

+0

(以及它使用*的原因是我最近在不同时区之间移动) –

相关问题