Fixed pvm. again. Now with ZZZZZZZZZZ

master
lanxu 2021-11-30 00:38:28 +02:00
parent 660e850a72
commit 31877e5b53
1 changed files with 3 additions and 3 deletions

View File

@ -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 = []