Include time portion in formatted datetimes when provided (#33191)

This commit is contained in:
Emelia Smith authored and GitHub committed 2025-01-08 14:26:08 +00:00
1 parent 2c36283a89
commit 15669fcf75
4 files changed
+8 -4

No files matched your search

+5 -1
View File
@@ -119,7 +119,11 @@ function loaded() {
formattedContent = dateFormat.format(datetime);
}
content.title = formattedContent;
const timeGiven = content.dateTime.includes('T');
content.title = timeGiven
? dateTimeFormat.format(datetime)
: dateFormat.format(datetime);
content.textContent = formattedContent;
});