mirror of
https://github.com/fluxerapp/fluxer.git
synced 2026-11-30 14:12:58 -08:00
Use locale parameter for date formatting (#1637)
Co-authored-by: Hampus <[email protected]>
This commit is contained in:
1 parent
b937306210
commit
d1e5b00c52
1 file changed
+1
-1
@@ -70,7 +70,7 @@ export function getFormattedCompactDateTime(
|
||||
hour12?: boolean,
|
||||
): string {
|
||||
const date = parseDate(timestamp);
|
||||
const datePart = getDateFormatter('en-US', {month: 'numeric', day: 'numeric', year: '2-digit'}).format(date);
|
||||
const datePart = getDateFormatter(locale, {month: 'numeric', day: 'numeric', year: '2-digit'}).format(date);
|
||||
const timePart = getDateFormatter(locale, {
|
||||
hour: 'numeric',
|
||||
minute: '2-digit',
|
||||
|
||||
Reference in new issue
Block a user