WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [Solved] How can I set the correct time zone on pi5?  (Read 291 times)

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 303
[Solved] How can I set the correct time zone on pi5?
« on: September 30, 2025, 05:35:39 AM »
I added the following server to the file /etc/sysconfig/ntpserver:

Quote
cat /etc/sysconfig/ntpserver
0.de.pool.ntp.org

Then I run:

Quote
bash /etc/init.d/settime.sh
However, the time is still 2 hours behind.

Quote
date
Tue Sep 30 09:29:24 UTC 2025


When I run export TZ='Europe/Berlin', the time zone changes to Europe/Berlin, but the time is still 2 hours behind:

Quote
date
Tue Sep 30 09:31:38 Europe 2025

Can anyone help me?
« Last Edit: October 02, 2025, 08:10:29 AM by Rich »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 15274
Re: How can I set the correct time zone on pi5?
« Reply #1 on: September 30, 2025, 06:06:46 AM »
I have "tz=utc-2" in cmdline.txt and the correct time is shown after starting wifi and "sudo getTime.sh".

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 303
Re: How can I set the correct time zone on pi5?
« Reply #2 on: September 30, 2025, 06:14:19 AM »
so what "tz=" in cmdline.txt schould i try for Germany ?




Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 15274
Re: How can I set the correct time zone on pi5?
« Reply #3 on: September 30, 2025, 06:30:24 AM »
I'm in France, so it should be the same?

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 303
Re: How can I set the correct time zone on pi5?
« Reply #4 on: September 30, 2025, 07:03:54 AM »
it Worked thank you!  :)

I have another question:

How can I prevent the boot menu from showing up on the Raspberry Pi 5? (Please see the attached image.)

Also, how can I configure the Pi to always automatically boot from the SD card?

On other operating systems, I would normally use raspi-config, but I couldn’t find it on PiCore.

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 786
Re: How can I set the correct time zone on pi5?
« Reply #5 on: September 30, 2025, 07:17:49 AM »
I think when setting the tz with continent/country/city like Europe/Stockholm, timezone have to lookup that in a file, so when I set the tz in tinycore I allways set to tz=CET-1CEST,M3.5.0,M10.5.0/3.

I think it's busybox for setting the correct tz, so you get correct time/date.
https://sourceware.org/glibc/manual/latest/html_node/TZ-Variable.html
https://sourceware.org/glibc/manual/latest/html_node/Proleptic-TZ.html
https://remotemonitoringsystems.ca/time-zone-abbreviations.php
So this is some example of my kernel cmdline args:
Code: [Select]
tz=CET-1CEST,M3.5.0,M10.5.0/3 kmap=qwerty/sv-latin1 host=raspxe noautologin nodhcp

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 303
Re: How can I set the correct time zone on pi5?
« Reply #6 on: October 02, 2025, 05:36:29 AM »
i will move the new question to a new topic, thank you for helping
this topic can be marked as solved

it Worked thank you!  :)

I have another question:

How can I prevent the boot menu from showing up on the Raspberry Pi 5? (Please see the attached image.)

Also, how can I configure the Pi to always automatically boot from the SD card?

On other operating systems, I would normally use raspi-config, but I couldn’t find it on PiCore.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 12265
Re: [Solved] How can I set the correct time zone on pi5?
« Reply #7 on: October 02, 2025, 08:11:50 AM »
Hi Rabie
... this topic can be marked as solved ...
Done.