IntervalStringFromDate: Fix date being a string

This commit is contained in:
glax 2024-10-27 03:43:47 +01:00
parent 07dfee15eb
commit 4660f9a402

View File

@ -5,7 +5,8 @@ import IProgressToken from "./interfaces/IProgressToken";
export default class Job export default class Job
{ {
static IntervalStringFromDate(date: Date) : string { 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<string[]> { static async GetAllJobs(apiUri: string): Promise<string[]> {