mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-05-12 02:19:55 +08:00
8 lines
180 B
JavaScript
8 lines
180 B
JavaScript
import dayjs from 'dayjs'
|
|
import utc from 'dayjs/plugin/utc'
|
|
|
|
dayjs.extend(utc)
|
|
export const transformUtcDateToLocalDate = (utcString) => {
|
|
return dayjs.utc(utcString).local()
|
|
}
|