mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-01-19 03:05:53 +08:00
Change UTC timezone to system time
This commit is contained in:
parent
d1b889456d
commit
2468b9e550
@ -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()
|
||||
);
|
||||
}
|
||||
|
@ -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}`;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user