fix: citation issue (#178)
All checks were successful
Publish latest version / build (push) Successful in 2m2s
All checks were successful
Publish latest version / build (push) Successful in 2m2s
Reviewed-on: #178 Co-authored-by: Mylloon <kennel.anri@tutanota.com> Co-committed-by: Mylloon <kennel.anri@tutanota.com>
This commit is contained in:
parent
7fed94def8
commit
facf0cd88e
1 changed files with 4 additions and 2 deletions
|
@ -5,8 +5,10 @@
|
|||
* @param date Date
|
||||
* @returns String
|
||||
*/
|
||||
export const showDate = (locale: Map<string, unknown>, date: Date) =>
|
||||
`${date.toDateString()} ${locale.get("u_time_at")} ${date.toTimeString().split(" ")[0]}`;
|
||||
export const showDate = (locale: Map<string, unknown>, date: Date) => {
|
||||
const timezoned = new Date(date.getTime());
|
||||
return `${timezoned.toDateString()} ${locale.get("u_time_at")} ${timezoned.toTimeString().split(" ")[0]}`;
|
||||
};
|
||||
|
||||
enum TimeSecond {
|
||||
Year = 31536000,
|
||||
|
|
Loading…
Reference in a new issue