From 7a8983a38d1be008804fef8bb6c697053f2c3c10 Mon Sep 17 00:00:00 2001 From: Dale Davies Date: Fri, 18 Mar 2022 17:04:38 +0000 Subject: [PATCH] Issue #16: Fix utcshift multiplication issue --- jumpapp/assets/js/src/classes/Clock.js | 2 +- jumpapp/assets/js/src/classes/Weather.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jumpapp/assets/js/src/classes/Clock.js b/jumpapp/assets/js/src/classes/Clock.js index 917606a..f389747 100644 --- a/jumpapp/assets/js/src/classes/Clock.js +++ b/jumpapp/assets/js/src/classes/Clock.js @@ -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); } diff --git a/jumpapp/assets/js/src/classes/Weather.js b/jumpapp/assets/js/src/classes/Weather.js index 7dd9021..48c2b3c 100644 --- a/jumpapp/assets/js/src/classes/Weather.js +++ b/jumpapp/assets/js/src/classes/Weather.js @@ -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, }); }) }