Almost there

This commit is contained in:
Daniel Ledda
2020-11-14 15:26:45 +01:00
parent 99b7c21c76
commit d2955e53b4
4 changed files with 5 additions and 6 deletions

2
webapp/dist/main.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -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) {