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.
|
||||
*/
|
||||
export function getDates(timeBlock: VariablesWithTime): Date[] {
|
||||
return getTimestamps(timeBlock).map((t) => {
|
||||
const date = new Date(t);
|
||||
return date;
|
||||
});
|
||||
return getTimestamps(timeBlock).map((t) => new Date(t));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user