Time

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
Krisberg
Posts: 1
Joined: Thu Jul 22, 2021 1:03 am

Time

Post by Krisberg »

Hello DietPi Community! Firstly, let me say that my experience with DietPi has been so much better than with Raspbian. One of my favorite features is that SSH is enabled by default so I can get started right away. Not everyone has a second monitor and keyboard just lying around. As a thank you, I am contributing the BAT of my Brave Rewards to DietPi. It's all I can do at the moment.

I have come to the DietPi forum today because I need clarification on the system time. If I am not mistaken, DietPi is based on Debian, and Debian seems to get its system time information from something called the TZ Database. I want to use a Raspberry Pi as a NodeRED server and I am assuming NodeRED uses the system time for anything time-related. So, does DietPi set and synchronize its system time to the local time on its own, or does it need my help? Furthermore, if the system time has indeed been set to the local time, can it handle DST (Daylight Savings Time)? I am working on a project where the local time is critical. Being off by an hour can be catastrophic.

This seems useful: https://www.digitalocean.com/community/ ... -debian-10

Thank you for any advice you can give me.
Respectfully,
Krisberg
User avatar
trendy
Posts: 340
Joined: Tue Feb 25, 2020 2:54 pm

Re: Time

Post by trendy »

If all network settings are correct, DietPi will synchronize the time over the network. There are 3-4 options for you to configure how time will be synchronized in dietpi-config. Other than that, daylight saving works of course too.
User avatar
Joulinar
Posts: 5090
Joined: Sat Nov 16, 2019 12:49 am

Re: Time

Post by Joulinar »

To be more specific, DietPi will synchronize system time once a day automatically (default setting). However we will not set any time zone. Default time zone we use is Europe/London. This can be changed before first initial boot using dietpi.txt

Code: Select all

# Timezone eg: "Europe/London" / "America/New_York" | Full list (TZ*): https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
AUTO_SETUP_TIMEZONE=Europe/London
or using dietpi-config > 5 : Language/Regional Options later on.

As well you are free to select your own or a specific time server if needed.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply