mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-17 21:26:13 -04:00
Compare commits
2 Commits
v4.0.4.169
...
v4.0.4.169
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
66940b283b | ||
|
|
2a662afaef |
@@ -30,22 +30,21 @@ function getRelativeDate({
|
||||
return null;
|
||||
}
|
||||
|
||||
if (includeTime && !timeFormat) {
|
||||
if ((includeTime || timeForToday) && !timeFormat) {
|
||||
throw new Error(
|
||||
"getRelativeDate: 'timeFormat' is required when 'includeTime' is true"
|
||||
"getRelativeDate: 'timeFormat' is required when 'includeTime' or 'timeForToday' is true"
|
||||
);
|
||||
}
|
||||
|
||||
const isTodayDate = isToday(date);
|
||||
const time =
|
||||
includeTime && timeFormat
|
||||
? formatTime(date, timeFormat, {
|
||||
includeMinuteZero: true,
|
||||
includeSeconds,
|
||||
})
|
||||
: '';
|
||||
const time = timeFormat
|
||||
? formatTime(date, timeFormat, {
|
||||
includeMinuteZero: true,
|
||||
includeSeconds,
|
||||
})
|
||||
: '';
|
||||
|
||||
if (isTodayDate && timeForToday && timeFormat) {
|
||||
if (isTodayDate && timeForToday) {
|
||||
return time;
|
||||
}
|
||||
|
||||
|
||||
@@ -2074,5 +2074,9 @@
|
||||
"IndexerSettingsMultiLanguageReleaseHelpText": "¿Qué idiomas están normalmente en un lanzamiento múltiple en este indexador?",
|
||||
"DownloadClientQbittorrentTorrentStateMissingFiles": "qBittorrent está reportando archivos faltantes",
|
||||
"BlocklistFilterHasNoItems": "El filtro de lista de bloqueo seleccionado no contiene elementos",
|
||||
"HasUnmonitoredSeason": "Tiene temporada sin monitorizar"
|
||||
"HasUnmonitoredSeason": "Tiene temporada sin monitorizar",
|
||||
"TomorrowAt": "Mañana a las {time}",
|
||||
"YesterdayAt": "Ayer a las {time}",
|
||||
"TodayAt": "Hoy a las {time}",
|
||||
"DayOfWeekAt": "{day} a las {time}"
|
||||
}
|
||||
|
||||
@@ -2073,5 +2073,10 @@
|
||||
"AutoTaggingSpecificationTag": "Etiqueta",
|
||||
"IndexerSettingsMultiLanguageRelease": "Multi Idiomas",
|
||||
"DownloadClientQbittorrentTorrentStateMissingFiles": "qBittorrent está relatando arquivos perdidos",
|
||||
"BlocklistFilterHasNoItems": "O filtro selecionado para a lista de bloqueio não contém itens"
|
||||
"BlocklistFilterHasNoItems": "O filtro selecionado para a lista de bloqueio não contém itens",
|
||||
"DayOfWeekAt": "{day} às {time}",
|
||||
"TodayAt": "Hoje às {time}",
|
||||
"TomorrowAt": "Amanhã às {time}",
|
||||
"HasUnmonitoredSeason": "Tem Temporada Não Monitorada",
|
||||
"YesterdayAt": "Ontem às {time}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user