imathis/octopress — pull request #907 by chrisperelstein (2012-12-31 21:52:47+00:00)
Title: use utc datetimes in iso8601 for posts and pages

I've been playing with Octopress for a few weeks now to use for my blog and recently I noticed dates and times when using 'rake preview' were off from what I was expecting. The issue for me was that my desktop had a different (and wrong) timezone compared to my laptop. I see that currently, the rake tasks just dump year, month, day, hours, and minutes into pages and posts, and the current timezone is assumed when the pages are generated . I modified my rakefile to use utc and iso8601 to generate pages and posts, update old non-iso8601 page and posts. Then added a javascript library ([moment.js](http://momentjs.com)) in order to adjust dates and times to the visitors timezone. I'm sure this is an incredibly rare and relatively unimportant issue, but I figured this makes ones blog a little more universal.