Change UTC timezone to system time

This commit is contained in:
Alexandros Ioannides 2023-07-09 01:16:05 +03:00
parent d1b889456d
commit 2468b9e550
No known key found for this signature in database
GPG Key ID: 854EFB6E58EF0C5E
3 changed files with 6 additions and 6 deletions

View File

@ -77,8 +77,8 @@ function isSameDate(ts1: string, ts2: string): boolean {
const date1 = new Date(ts1);
const date2 = new Date(ts2);
return (
date1.getUTCDate() === date2.getUTCDate() &&
date1.getUTCMonth() === date2.getUTCMonth() &&
date1.getUTCFullYear() === date2.getUTCFullYear()
date1.getDate() === date2.getDate() &&
date1.getMonth() === date2.getMonth() &&
date1.getFullYear() === date2.getFullYear()
);
}

View File

@ -85,9 +85,9 @@ export function timeAgoUnix(unixtime: number): string {
return stringifyDuration(duration) + " ago";
}
export function getCurrentUTCDate(): string {
export function getCurrentDate(): string {
const today = new Date();
const dd = today.getUTCDate().toString().padStart(2, "0");
const dd = today.getDate().toString().padStart(2, "0");
const mm = (today.getMonth() + 1).toString().padStart(2, "0");
const yyyy = today.getFullYear();
return `${yyyy}-${mm}-${dd}`;

View File

@ -186,7 +186,7 @@ function DashboardView(props: Props) {
title={
<div>
<div className={classes.tooltipSection}>
Total number of tasks processed in a given day (UTC)
Total number of tasks processed in a given day
</div>
<div className={classes.tooltipSection}>
<strong>Succeeded</strong>: number of tasks successfully