mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 09:42:21 -04:00
Update weatherbit.js
This commit is contained in:
parent
8a23bccb70
commit
2951f0c40c
1 changed files with 2 additions and 2 deletions
|
@ -68,8 +68,8 @@ WeatherProvider.register("weatherbit", {
|
|||
// Implement WeatherDay generator.
|
||||
generateWeatherDayFromCurrentWeather(currentWeatherData) {
|
||||
//Calculate TZ Offset and invert to convert Sunrise/Sunset times to Local
|
||||
var d = new Date();
|
||||
var tzOffset = d.getTimezoneOffset();
|
||||
const d = new Date();
|
||||
let tzOffset = d.getTimezoneOffset();
|
||||
tzOffset = tzOffset * -1;
|
||||
|
||||
const currentWeather = new WeatherObject(this.config.units, this.config.tempUnits, this.config.windUnits);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue