replace utc helper function with local date (#31421)
GitOrigin-RevId: 03d8502bfe105574f8eb1ad65356a334edf44cd0
This commit is contained in:
committed by
Copybot
parent
59774b34bd
commit
f33c3ba4cb
@@ -1,8 +1,8 @@
|
||||
import moment from 'moment'
|
||||
|
||||
export function formatUtcDate(date: moment.MomentInput) {
|
||||
export function formatLocalDate(date: moment.MomentInput) {
|
||||
if (date) {
|
||||
return moment(date).utc().format('D MMM YYYY, HH:mm:ss') + ' UTC'
|
||||
return moment(date).format('D MMM YYYY, HH:mm:ss Z')
|
||||
} else {
|
||||
return 'N/A'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user