fix #100
All checks were successful
Lint and Format Check / lint-and-format (pull_request) Successful in 38s
All checks were successful
Lint and Format Check / lint-and-format (pull_request) Successful in 38s
This commit is contained in:
parent
7fed94def8
commit
c72fae6335
1 changed files with 4 additions and 2 deletions
|
@ -5,8 +5,10 @@
|
||||||
* @param date Date
|
* @param date Date
|
||||||
* @returns String
|
* @returns String
|
||||||
*/
|
*/
|
||||||
export const showDate = (locale: Map<string, unknown>, date: Date) =>
|
export const showDate = (locale: Map<string, unknown>, date: Date) => {
|
||||||
`${date.toDateString()} ${locale.get("u_time_at")} ${date.toTimeString().split(" ")[0]}`;
|
const timezoned = new Date(date.getTime());
|
||||||
|
return `${timezoned.toDateString()} ${locale.get("u_time_at")} ${timezoned.toTimeString().split(" ")[0]}`;
|
||||||
|
};
|
||||||
|
|
||||||
enum TimeSecond {
|
enum TimeSecond {
|
||||||
Year = 31536000,
|
Year = 31536000,
|
||||||
|
|
Loading…
Reference in a new issue