mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update upcoming
This commit is contained in:
parent
728cbb289f
commit
7d0813e2a7
3 changed files with 16 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue