Arcath / jekyll-atom

A collection of tools and snippets for working with Jekyll in Atom
https://atom.io/packages/jekyll
MIT License
49 stars 19 forks source link

Add Timezone in Date String Generator #45

Closed hyjk2000 closed 8 years ago

hyjk2000 commented 8 years ago

When creating new post, the date in the front matter was set as user local time without timezone info. This may cause some problems when building or in post metadata.

If the build server and the user are not in the same timezone, e.g. the user in UTC+10 and the build server in UTC, the date will always be ahead of the build server. Since Jekyll won't build posts with a future date unless with --future, the post will be hidden until another build 10 hours later.

Arcath commented 8 years ago

Good point, Will review this in the morning and hopefully publish it soon after