revert getDates change
This commit is contained in:
@@ -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;
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user