{"action":"created","issue":{"url":"https://api.github.com/repos/jekyll/jekyll/issues/4096","labels_url":"https://api.github.com/repos/jekyll/jekyll/issues/4096/labels{/name}","comments_url":"https://api.github.com/repos/jekyll/jekyll/issues/4096/comments","events_url":"https://api.github.com/repos/jekyll/jekyll/issues/4096/events","html_url":"https://github.com/jekyll/jekyll/issues/4096","id":114628724,"number":4096,"title":"timezone data in post date is overwritten","user":{"login":"willnorris","id":1112,"avatar_url":"https://avatars.githubusercontent.com/u/1112?v=3","gravatar_id":"","url":"https://api.github.com/users/willnorris","html_url":"https://github.com/willnorris","followers_url":"https://api.github.com/users/willnorris/followers","following_url":"https://api.github.com/users/willnorris/following{/other_user}","gists_url":"https://api.github.com/users/willnorris/gists{/gist_id}","starred_url":"https://api.github.com/users/willnorris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willnorris/subscriptions","organizations_url":"https://api.github.com/users/willnorris/orgs","repos_url":"https://api.github.com/users/willnorris/repos","events_url":"https://api.github.com/users/willnorris/events{/privacy}","received_events_url":"https://api.github.com/users/willnorris/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jekyll/jekyll/labels/Bug","name":"Bug","color":"d41313"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/jekyll/jekyll/milestones/32","html_url":"https://github.com/jekyll/jekyll/milestones/3.0.1","labels_url":"https://api.github.com/repos/jekyll/jekyll/milestones/32/labels","id":1384370,"number":32,"title":"3.0.1","description":"","creator":{"login":"envygeeks","id":99763,"avatar_url":"https://avatars.githubusercontent.com/u/99763?v=3","gravatar_id":"","url":"https://api.github.com/users/envygeeks","html_url":"https://github.com/envygeeks","followers_url":"https://api.github.com/users/envygeeks/followers","following_url":"https://api.github.com/users/envygeeks/following{/other_user}","gists_url":"https://api.github.com/users/envygeeks/gists{/gist_id}","starred_url":"https://api.github.com/users/envygeeks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/envygeeks/subscriptions","organizations_url":"https://api.github.com/users/envygeeks/orgs","repos_url":"https://api.github.com/users/envygeeks/repos","events_url":"https://api.github.com/users/envygeeks/events{/privacy}","received_events_url":"https://api.github.com/users/envygeeks/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":4,"state":"open","created_at":"2015-10-29T22:23:58Z","updated_at":"2015-11-02T20:08:50Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-11-02T16:17:53Z","updated_at":"2015-11-02T20:17:25Z","closed_at":null,"body":"One of the unfortunate side effects of how the \"posts as collection\" feature was implemented in b89f943b is that now the original timezone of a post's date is forever lost.  For previous discussion of this issue, see #1069.  \r\n\r\nPrior to the above change, I was relying on the fact that if a date was specified as a string, safe_yaml would not try and parse it as a date, but instead just leave it alone (see my original comment at https://github.com/jekyll/jekyll/issues/1069#issuecomment-77664155).  Similarly, Jekyll itself would only ever set `self.date`, but always leave `data[\"date\"]` untouched (see [Post.initialize](https://github.com/jekyll/jekyll/blob/d63acc140db95f62e851b984005fb07701d97e98/lib/jekyll/post.rb#L66)).\r\n\r\nWith the new [Document.merge_data](https://github.com/jekyll/jekyll/blob/b89f943bf22bd7f36c8378791ca543e16a59f442/lib/jekyll/document.rb#L68-L70) function, the `data[\"date\"]` value is explicitly being ovewritten with the localtime value returned by `Utils.parse_date`, meaning that there is no way for a plugin to get at the original, author-specified value.  Could that safely be reverted to set `self.date` rather than `data[\"date\"]`?  I'm not sure what else is relying on the `data` hash.\r\n\r\nFor the time being, I'll likely work around this by monkey-patching `Document.merge_data` to preserve the original value somewhere.  But I'll still repeat what [I said previously](https://github.com/jekyll/jekyll/issues/1069#issuecomment-77715124):\r\n\r\n> if an author has taken the effort to specify the TZ in the post date, then it seems very unfortunate that we don't respect and preserve that."},"comment":{"url":"https://api.github.com/repos/jekyll/jekyll/issues/comments/153144720","html_url":"https://github.com/jekyll/jekyll/issues/4096#issuecomment-153144720","issue_url":"https://api.github.com/repos/jekyll/jekyll/issues/4096","id":153144720,"user":{"login":"envygeeks","id":99763,"avatar_url":"https://avatars.githubusercontent.com/u/99763?v=3","gravatar_id":"","url":"https://api.github.com/users/envygeeks","html_url":"https://github.com/envygeeks","followers_url":"https://api.github.com/users/envygeeks/followers","following_url":"https://api.github.com/users/envygeeks/following{/other_user}","gists_url":"https://api.github.com/users/envygeeks/gists{/gist_id}","starred_url":"https://api.github.com/users/envygeeks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/envygeeks/subscriptions","organizations_url":"https://api.github.com/users/envygeeks/orgs","repos_url":"https://api.github.com/users/envygeeks/repos","events_url":"https://api.github.com/users/envygeeks/events{/privacy}","received_events_url":"https://api.github.com/users/envygeeks/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T20:17:25Z","updated_at":"2015-11-02T20:17:25Z","body":"Hulk is here, here is what you wanted:\r\n\r\n* https://github.com/jekyll/jekyll/blob/master/lib/jekyll/document.rb#L30\r\n* https://github.com/jekyll/jekyll/blob/master/lib/jekyll/document.rb#L278\r\n* https://github.com/jekyll/jekyll/blob/master/lib/jekyll/document.rb#L284\r\n* https://github.com/jekyll/jekyll/blob/master/lib/jekyll/document.rb#L299\r\n* https://github.com/jekyll/jekyll/blob/master/lib/jekyll/document.rb#L303\r\n* https://github.com/jekyll/jekyll/blob/master/lib/jekyll/document.rb#L315\r\n* https://github.com/jekyll/jekyll/blob/master/lib/jekyll/document.rb#L323\r\n\r\nI went ahead and checked for keywords, this might interest you:\r\n\r\n* https://github.com/jekyll/jekyll/blob/master/lib/jekyll/document.rb#L303"}}