diff --git a/plugins/pvm.js b/plugins/pvm.js index 3ba37f7..435a0ad 100644 --- a/plugins/pvm.js +++ b/plugins/pvm.js @@ -25,7 +25,7 @@ class Pwm extends BasePlugin { today () { var today = new Date() - return (new Intl.DateTimeFormat('fi-FI', {day: 'numeric', month: 'numeric', timezone: 'Europe/Helsinki'}).format(today)) + return (new Intl.DateTimeFormat('fi-FI', {day: 'numeric', month: 'numeric', timeZone: 'Europe/Helsinki'}).format(today)) } getWeather (city, code) { var language = 'fi' @@ -75,8 +75,8 @@ class Pwm extends BasePlugin { let sunriseDate = new Date(Number(weather.sys.sunrise) * 1000) let sunsetDate = new Date(Number(weather.sys.sunset) * 1000) - let sunrise = new Intl.DateTimeFormat('fi-FI', {hour: 'numeric', minute: 'numeric', timezone: 'Europe/Helsinki'}).format(sunriseDate) - let sunset = new Intl.DateTimeFormat('fi-FI', {hour: 'numeric', minute: 'numeric', timezone: 'Europe/Helsinki'}).format(sunsetDate) + let sunrise = new Intl.DateTimeFormat('fi-FI', {hour: 'numeric', minute: 'numeric', timeZone: 'Europe/Helsinki'}).format(sunriseDate) + let sunset = new Intl.DateTimeFormat('fi-FI', {hour: 'numeric', minute: 'numeric', timeZone: 'Europe/Helsinki'}).format(sunsetDate) const $ = cheerio.load(data[0]) let names = []