update upcoming

This commit is contained in:
Luke Pulverenti 2016-04-16 15:03:19 -04:00
parent 728cbb289f
commit 7d0813e2a7
3 changed files with 16 additions and 3 deletions

View File

@ -59,7 +59,13 @@
if (item.PremiereDate) { if (item.PremiereDate) {
try { try {
dateText = LibraryBrowser.getFutureDateText(parseISO8601Date(item.PremiereDate, { toLocal: true }), true); var premiereDate = parseISO8601Date(item.PremiereDate, { toLocal: true });
if (premiereDate.getDate() == new Date().getDate() - 1) {
dateText = Globalize.translate('Yesterday');
} else {
dateText = LibraryBrowser.getFutureDateText(premiereDate, true);
}
} catch (err) { } catch (err) {
} }

View File

@ -62,7 +62,13 @@
if (item.PremiereDate) { if (item.PremiereDate) {
try { try {
dateText = LibraryBrowser.getFutureDateText(parseISO8601Date(item.PremiereDate, { toLocal: true }), true); var premiereDate = parseISO8601Date(item.PremiereDate, { toLocal: true });
if (premiereDate.getDate() == new Date().getDate() - 1) {
dateText = Globalize.translate('Yesterday');
} else {
dateText = LibraryBrowser.getFutureDateText(premiereDate, true);
}
} catch (err) { } catch (err) {
} }

View File

@ -2336,5 +2336,6 @@
"ErrorAddingGuestAccount2": "Please ensure your guest has completed activation by following the instructions in the email sent after creating the account. If they did not receive this email then please send an email to {0}, and include your email address as well as theirs.", "ErrorAddingGuestAccount2": "Please ensure your guest has completed activation by following the instructions in the email sent after creating the account. If they did not receive this email then please send an email to {0}, and include your email address as well as theirs.",
"GuestUserNotFound": "User not found. Please ensure the name is correct and try again, or try entering their email address.", "GuestUserNotFound": "User not found. Please ensure the name is correct and try again, or try entering their email address.",
"MarkPlayed": "Mark played", "MarkPlayed": "Mark played",
"MarkUnplayed": "Mark unplayed" "MarkUnplayed": "Mark unplayed",
"Yesterday": "Yesterday"
} }