mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07:00
update upcoming
This commit is contained in:
parent
728cbb289f
commit
7d0813e2a7
@ -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) {
|
||||||
}
|
}
|
||||||
|
@ -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) {
|
||||||
}
|
}
|
||||||
|
@ -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"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user