Page 1 of 1
Setting the correct timezone on LuckFox Pico Max Pro
Posted: 2024-02-23 21:29
by torchris4
I have been working through the tutorial on setting the timezone & hardware clock here:
https://wiki.luckfox.com/Luckfox-Pico/Luckfox-Pico-ntpd
It seems like I can get it to work temporarily by setting the last line in /etc/profile to "export TZ=EST5", but then it seems to revert to a time that I assume is China Standard Time.
Is there another step here to making the timezone information persistent?
Re: Setting the correct timezone on LuckFox Pico Max Pro
Posted: 2024-02-26 3:36
by Eng38
Hello, try adding the following configuration:
Code: Select all
vi /etc/profile
add:
export TZ=UTC-5
Re: Setting the correct timezone on LuckFox Pico Max Pro
Posted: 2024-02-27 18:30
by torchris4
I have tried that. When I set it to that in profile I get:
- Wed Feb 28 07:28:21 UTC 2024
Where as the actual date/time where I am is:
I am not sure if there is another time offset somewhere?
Re: Setting the correct timezone on LuckFox Pico Max Pro
Posted: 2024-02-28 7:26
by Eng38
torchris4 wrote: ↑2024-02-27 18:30
I am not sure if there is another time offset somewhere?
There are no other places to configure the time zone. After testing, it was found that the time did not change. If your system time changes, you can try the following steps:
Synchronize the system time to the hardware clock (hwclock).
During each startup, synchronize the time from the hardware clock to the system time.
You can create a startup script to automatically execute the synchronization commands. Refer to the tutorial below for guidance:
https://wiki.luckfox.com/Luckfox-Pico/L ... -autostart
Re: Setting the correct timezone on LuckFox Pico Max Pro
Posted: 2024-02-28 20:46
by torchris4
Great, thanks! I'll try that!