replace utc helper function with local date (#31421)

GitOrigin-RevId: 03d8502bfe105574f8eb1ad65356a334edf44cd0
This commit is contained in:
Anna Claire Fields
2026-02-18 09:05:54 +00:00
committed by Copybot
parent 59774b34bd
commit f33c3ba4cb
2 changed files with 90 additions and 2 deletions
@@ -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'
}