Setting the correct timezone on LuckFox Pico Max Pro

  • Hello, try adding the following configuration:

    Code: Select all

    vi /etc/profile
    add:
    export TZ=UTC-5
    
  • 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:
    • Tues Feb 28 13:28
    I am not sure if there is another time offset somewhere?
  • 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).

    Code: Select all

    hwclock --systohc
    
    During each startup, synchronize the time from the hardware clock to the system time.

    Code: Select all

    hwclock -u -s
    
    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
  • Great, thanks! I'll try that!