0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Merge pull request #1107 from karolisdzeja/pub-date-bug-fix

Fix notification bug
This commit is contained in:
Hannah Wolfe 2013-10-16 00:37:48 -07:00
commit a5c35d451a

View file

@ -90,7 +90,7 @@
newPubDate = pubDateEl.value;
// Ensure the published date has changed
if (newPubDate.length === 0 || pubDate === newPubDate) {
if (newPubDate.length === 0 || moment(pubDate).format("DD MMM YY") === newPubDate) {
pubDateEl.value = pubDate === undefined ? 'Not Published' : moment(pubDate).format("DD MMM YY");
return;
}
@ -192,4 +192,4 @@
});
}());
}());