mirror of
https://github.com/daledavies/jump.git
synced 2026-05-07 17:46:06 +02:00
Issue #16: Fix utcshift multiplication issue
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
});
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user