mirror of
https://github.com/mastodon/mastodon.git
synced 2026-08-20 05:54:26 -05:00
Include time portion in formatted datetimes when provided (#33191)
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user