fix: citation issue #178

Merged
Anri merged 1 commit from dev into main 2024-09-23 19:33:21 +02:00
Showing only changes of commit c72fae6335 - Show all commits

View file

@ -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,