@MMRIZE said in MMM-OpenmapWeather sunrise and sunset times are GMT:
patches: [
{
module: “MMM-OpenmapWeather”,
method: “processWeather”,
patch: function (original, args) {
const [ data ] = args
const yourDesiredOffset = 5 * 60 * 60 // 5 hours
data.sys.sunrise = new Date((data.sys.sunrise + yourDesiredOffset) * 1000).valueOf()
data.sys.sunset = new Date((data.sys.sunset + yourDesiredOffset) * 1000).valueOf()
original(data)
}
},
]
}
}
Rather than trying the “Monkey Patch” I disabled the display of the sunrise/sunset times. There is an undocumented config varable called showSun. Set it to false and they don’t display. I never looked at these times. Easier to turn it off than fix.