From 4660f9a40237645132ef5c6b810448e48c6d4040 Mon Sep 17 00:00:00 2001 From: glax Date: Sun, 27 Oct 2024 03:43:47 +0100 Subject: [PATCH] IntervalStringFromDate: Fix date being a string --- Website/modules/Job.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Website/modules/Job.tsx b/Website/modules/Job.tsx index 984dda7..09709b7 100644 --- a/Website/modules/Job.tsx +++ b/Website/modules/Job.tsx @@ -5,7 +5,8 @@ import IProgressToken from "./interfaces/IProgressToken"; export default class Job { static IntervalStringFromDate(date: Date) : string { - return `${date.getDay()}.${date.getHours()}:${date.getMinutes()}:${date.getSeconds()}`; + let x = new Date(date); + return `${x.getDay()}.${x.getHours()}:${x.getMinutes()}:${x.getSeconds()}`; } static async GetAllJobs(apiUri: string): Promise {