WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: time via internet server  (Read 3054 times)

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
time via internet server
« on: April 02, 2009, 03:15:33 AM »
this is my boot line:
Code: [Select]
title Tiny Core restore=sda1 home=hda4
kernel (hd0,3)/boot/bzImage quiet kmap=it lang=it restore=sda1 home=hda4 settime tz=UTC-2 max_loop=60 noutc
initrd (hd0,3)/boot/tinycore.gz

And when I click on "time via internet server" the time is ok, but I live in italy, so it should be UTC-1.
The problem started last week when the time changed due to DST
dCore user

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: time via internet server
« Reply #1 on: April 02, 2009, 09:16:00 AM »
If you live where in an area that has DST then you need to use the full specification for the tz variable. Indicating both the begin and end of DST.

For example mine tz boot code is: tz=PST+8PDT,M3.2.0/2,M11.1.0/2

In the above DST clause PDT,M3.2.0/2,M11.1.0/2

M3 = month nbr (1-12)
2 = week nbr (1-5)
0 = day of week (0-7)
/2 = time

So for PDT it begins March second Sunday at 2AM and end November first Sunday at 2AM.
10+ Years Contributing to Linux Open Source Projects.

Offline Kingdomcome

  • Sr. Member
  • ****
  • Posts: 286
Re: time via internet server
« Reply #2 on: April 02, 2009, 09:42:11 PM »
Roberts,
    Maybe Im just one of the noobs that was not aware of the capabilities surronding the TZ variable, but I find this to be quite a gem of info.  Thanks again for all you've done!