Read the statement by Michael Teeuw here.
MagicMirror using the wrong time
-
After a recent update, any module that is displaying a time is showing the UTC time and not my local timezone. The default clock module supports adding a timezone, so I’ve been able to add it there and the time is thus correct. The default calendar module and MMM-OpenWeatherForecast do not support adding timezones and are showing 4 hours off (see screenshot).
Unsure of what I need to attach to aid in troubleshooting, so please let me know what will help.
So far, I’ve done some searching and I’ve seen posts related to timezones for the calendar module but they have since been resolved.
My rpi shows the right time on the taskbar and typing date into the console shows the right date and time.
I have confirmed that my rpi is setup for the right timezone (America/New York), the right locale en-US.UTF-8
- Using Raspbian version 10
- MagicMirror is at 2.25.0
-
@sdetweil
I pulled out another Pi, flashed the OS and installed MM using the script you referenced earlier. It’s working perfectly. I’m still completely baffled. I’ve triple checked on the original SD image - it works as expected on the previous version of MM, but not on the current one… Ah well –Thank you for taking so much time to look into this, and I am sorry for having wasted so much of your time.
-
@rcberg3 another user posted similar
https://forum.magicmirror.builders/topic/18079/default-clock-wrong-after-update
-
@rcberg3 I’m having exactly the same issue. Also on Raspbian 10 and MM 2.25.0. I was able to set the timeZone in the clock module, but the calendar is still off. Has there been any further info on this? Is there another posting I should be looking at?
-
@blissb calendar uses the system timezone
set in the preferences, from the desktop -
@sdetweil Thanks for the quick reply - but what you are saying isn’t what I’m seeing… Please let me know what I’m missing. I’d be really grateful!
Time and timezone are set correctly on the two RPi systems. Time / date are showing correctly on the Raspbian desktop, and in the MM Clock module (after setting the timezone option). So, clearly, I’m missing something. Raspi-config has the correct timezone (America/New_York)
Clock module is correct after adding timeZone to config.js, but not the calendar or weather:
-
@blissb
Maybe your RPI is not synchronized with time server. RPI (not 5) has not RTC feature, so it should be synced it’s time sometimes. -
@blissb can you add ,“DEBUG”
to the log level in config.jsthen do
from on the terminal window docd ~/MagicMirror npm start > somefile.txt
wait til the calendar is up, then Ctrl+q to stop mm
then examine the somefile.txt
search for ‘initial’
-
@sdetweil
I replied to this, but then received a notice that my submission was rejected. I don’t know why.The debug file has over 200 entries referencing “initial tz =” with both “America/New_York” and “America/Lima.” I do not know why Lima would be anywhere in my configs, but I believe it’s the same time as New York, so I’m not sure that’s instructive.
I will also add there seems to be an “initial tz=” entry each followed immediately by “corrected tz=” with the same value.
-
@blissb not the same all the time
could you pull a complete section…
thru “saving event”
or send the file to me same userid as here at Gmail. -
@blissb
Again, I’m not seeing the same thing you are… weird.