Issue #16: Fix utcshift multiplication issue

This commit is contained in:
Dale Davies
2022-03-18 17:04:38 +00:00
parent b0b9b31453
commit 7a8983a38d
2 changed files with 2 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ export default class Clock {
}
set_utc_shift(newutcshift = 0) {
this.utcshift = newutcshift*1000;
this.utcshift = newutcshift;
this.shiftedtimestamp = new Date().getTime()+this.utcshift;
this.shifteddate = new Date(this.shiftedtimestamp);
}

View File

@@ -38,7 +38,7 @@ export default class Weather {
temp: Math.ceil(data.main.temp) + '°' + (JUMP.metrictemp ? 'C' : 'F'),
description: data.weather[0].main,
iconclass: 'wi-owm-' + daynightvariant + '-' + data.weather[0].id,
timezoneshift: data.timezone
timezoneshift: data.timezone*1000,
});
})
}