revert getDates change

This commit is contained in:
terraputix
2026-02-16 11:39:26 +01:00
parent 527052aa70
commit 5c605d6df4
+1 -4
View File
@@ -50,10 +50,7 @@ export function getTimestamps(timeBlock: VariablesWithTime): number[] {
* Extracts Date array (with UTC offset applied) from a VariablesWithTime block. * Extracts Date array (with UTC offset applied) from a VariablesWithTime block.
*/ */
export function getDates(timeBlock: VariablesWithTime): Date[] { export function getDates(timeBlock: VariablesWithTime): Date[] {
return getTimestamps(timeBlock).map((t) => { return getTimestamps(timeBlock).map((t) => new Date(t));
const date = new Date(t);
return date;
});
} }
/** /**