fix: the invalid data time in comments.
This commit is contained in:
parent
335a28f06d
commit
02e49f9230
@ -63,8 +63,5 @@ export const formatShowDate = (date: Date) => {
|
|||||||
|
|
||||||
export const formatLocalDate = (source: string) => {
|
export const formatLocalDate = (source: string) => {
|
||||||
const date = new Date(source);
|
const date = new Date(source);
|
||||||
return DateTime.fromJSDate(date)
|
return DateTime.fromJSDate(date).setLocale(options.settings.locale).toFormat(options.settings.timeFormat);
|
||||||
.setZone(options.settings.timeZone)
|
|
||||||
.setLocale(options.settings.locale)
|
|
||||||
.toFormat(options.settings.timeFormat);
|
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user