Fix date format to 'en-US' (#1741)

This commit is contained in:
Shati Patel
2022-11-11 10:35:24 +00:00
committed by GitHub
parent 21eabc2a93
commit 1241ce985a

View File

@@ -2,14 +2,14 @@
* Contains an assortment of helper constants and functions for working with dates.
*/
const dateWithoutYearFormatter = new Intl.DateTimeFormat(undefined, {
const dateWithoutYearFormatter = new Intl.DateTimeFormat('en-US', {
month: 'short',
day: 'numeric',
hour: 'numeric',
minute: '2-digit',
});
const dateFormatter = new Intl.DateTimeFormat(undefined, {
const dateFormatter = new Intl.DateTimeFormat('en-US', {
year: 'numeric',
month: 'short',
day: 'numeric',