lehkej spinkák update

This commit is contained in:
Histmy 2024-01-15 09:38:58 +01:00
parent 9b5e607458
commit 207be5a8c9
Signed by: Histmy
GPG Key ID: AC2E43C463D8F329

View File

@ -126,6 +126,7 @@ function strToDate(str: string) {
neco = /^((?<d>\d+)\. ?((?<mo>\d+)\.)? ?)?(?<h>\d+)(:(?<m>\d+)(:(?<s>\d+))?)? ?(?<p>am|pm)?$/.exec(str.toLowerCase());
if (neco) {
const g = neco.groups!;
if (typeof g.m == "undefined" && typeof g.p == "undefined") return [];
if (g.d) cas.setDate(Number(g.d));
if (g.mo) cas.setMonth(Number(g.mo) - 1);
const h = Number(g.h);