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:
commit
a5c35d451a
1 changed files with 2 additions and 2 deletions
|
@ -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 @@
|
|||
|
||||
});
|
||||
|
||||
}());
|
||||
}());
|
||||
|
|
Loading…
Add table
Reference in a new issue