{"issue":{"milestone":null,"user":{"id":26638,"login":"wavded","url":"https://api.github.com/users/wavded","avatar_url":"https://secure.gravatar.com/avatar/67fee7895a99cd5fd0b7de080548db12?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"67fee7895a99cd5fd0b7de080548db12"},"created_at":"2011-12-16T19:14:11Z","title":"00:00:00 timestamp formats a day off","updated_at":"2011-12-16T19:14:11Z","labels":[],"state":"open","id":2583255,"html_url":"https://github.com/andrewplummer/Sugar/issues/78","closed_at":null,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"Formatting dates that have a timestamp of 00:00:00 are going back a day.  This is most problematic when working with MongoDB because Dates are stored with a 00:00:00 timestamp.  Here is an example that I would expect to print out `1970 01 01` but prints out `1969 12 31` instead.\r\n\r\n```js\r\nvar date = new Date(0);\r\nconsole.log(date);  // Thu, 01 Jan 1970 00:00:00 GMT\r\nconsole.log(date.format('{yyyy} {M} {d}')); // 1969 12 31\r\n```","number":78,"url":"https://api.github.com/repos/andrewplummer/Sugar/issues/78","comments":0,"assignee":null},"action":"opened"}