fix time input for iOS

This commit is contained in:
vcoppe
2024-09-05 10:23:34 +02:00
parent 9d5391805d
commit 25a3df5756

View File

@@ -85,6 +85,9 @@
return new Date();
}
let [hours, minutes, seconds] = time.split(':').map((x) => parseInt(x));
if (seconds === undefined) {
seconds = 0;
}
return new Date(date.year, date.month - 1, date.day, hours, minutes, seconds);
}