feat: local time #7

Merged
frederic merged 3 commits from local-time into main 2026-02-16 11:41:34 +01:00
Showing only changes of commit 5c605d6df4 - Show all commits
+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;
});
} }
/** /**