Skip to content

Standardise time rendering across Date().toLocaleString() #21301

@jakehwll

Description

@jakehwll

Currently we aren't enforcing any set of standard for our .toLocaleString(), within #21252 we chose to update things to the following.

const customisedDateLocale: Intl.DateTimeFormatOptions = {
	// Hide the year from the date
	year: undefined,
	// Show the month as a short name
	month: "short",
	day: "numeric",
	hour: "2-digit",
	minute: "2-digit",
	second: "2-digit",
	hour12: true,
};

It would be good to standardise all instances of this to render the same newer way.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions