2
1
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2023-12-13 21:00:40 +01:00

Merge pull request #805 from ericterpstra/774-post-date-output-bug

Set post-settings date to 12:00
This commit is contained in:
Hannah Wolfe 2013-09-17 17:38:56 -07:00
commit 092ee2e6e7

View file

@ -112,7 +112,8 @@
// Save new 'Published' date
this.model.save({
published_at: momentPubDate.toDate()
// Temp Fix. Set hour to 12 instead of 00 to avoid some TZ issues.
published_at: momentPubDate.hour(12).toDate()
}, {
success : function (model, response, options) {
pubDateEl.value = moment(model.get('published_at')).format("DD MMM YY");