Fixed pvm. again. Now with ZZZZZZZZZZ
This commit is contained in:
parent
660e850a72
commit
31877e5b53
|
@ -25,7 +25,7 @@ class Pwm extends BasePlugin {
|
||||||
|
|
||||||
today () {
|
today () {
|
||||||
var today = new Date()
|
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) {
|
getWeather (city, code) {
|
||||||
var language = 'fi'
|
var language = 'fi'
|
||||||
|
@ -75,8 +75,8 @@ class Pwm extends BasePlugin {
|
||||||
|
|
||||||
let sunriseDate = new Date(Number(weather.sys.sunrise) * 1000)
|
let sunriseDate = new Date(Number(weather.sys.sunrise) * 1000)
|
||||||
let sunsetDate = new Date(Number(weather.sys.sunset) * 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 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 sunset = new Intl.DateTimeFormat('fi-FI', {hour: 'numeric', minute: 'numeric', timeZone: 'Europe/Helsinki'}).format(sunsetDate)
|
||||||
|
|
||||||
const $ = cheerio.load(data[0])
|
const $ = cheerio.load(data[0])
|
||||||
let names = []
|
let names = []
|
||||||
|
|
Loading…
Reference in New Issue
Block a user