update tz to format mesagae
This commit is contained in:
parent
016648553d
commit
3cbaedbfe5
|
|
@ -2,6 +2,6 @@ import * as moment from 'moment-timezone';
|
||||||
|
|
||||||
export function formatTimeAU(timestamp: number) {
|
export function formatTimeAU(timestamp: number) {
|
||||||
return moment(timestamp)
|
return moment(timestamp)
|
||||||
.tz('Australia/Sydney') // Đặt timezone
|
.tz('Etc/GMT-10') // Luôn cố định UTC+10
|
||||||
.format('DD/MM/YYYY, h:mm A');
|
.format('DD/MM/YYYY, h:mm A [AEST]');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue