fix: the invalid data time in comments.
This commit is contained in:
parent
96305b230a
commit
8d207f4968
@ -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