0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-15 03:01:37 -05:00

Properly format publish date.

fixes #1335
This commit is contained in:
Fabian Becker 2013-10-29 20:20:56 +00:00
parent 3e4a021b28
commit f356745b1a

View file

@ -134,7 +134,7 @@
}, {
success : function (model, response, options) {
/*jslint unparam:true*/
pubDateEl.value = moment(model.get('published_at'), parseDateFormats).format(displayDateFormat);
pubDateEl.value = moment(model.get('published_at')).format(displayDateFormat);
Ghost.notifications.addItem({
type: 'success',
message: 'Publish date successfully changed to <strong>' + pubDateEl.value + '</strong>.',