Almost there
This commit is contained in:
@@ -46,7 +46,7 @@ class ClimateChart {
|
||||
|
||||
private async getInitialDataBlob(): Promise<SnapshotRecords> {
|
||||
try {
|
||||
const data = await fetch(this.rootUrl + "/data?since=" + (new Date().getTime() - this.minutesDisplayed * 60 * 1000));
|
||||
const data = await fetch(this.rootUrl + "/data?since=" + new Date((new Date().getTime() - this.minutesDisplayed * 60 * 1000)).toISOString());
|
||||
return await data.json();
|
||||
}
|
||||
catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user