Slashdot Mirror


Linux Systems and the New DST

An anonymous reader writes "The recent changes in the Daylight Saving Time will affect virtually all computer systems in the US one week from now. Microsoft has been busy preparing Windows users for 'Y2DST,' and all the major Linux distributions have also issued patches. How can you be sure your Linux systems are ready, and what can you do to get them ready if they're not? This how-to article at Linux-Watch answers both questions in simple language and with easy-to-follow instructions."

24 of 304 comments (clear)

  1. Simple by SIGBUS · · Score: 4, Interesting

    Set you system to run on UTC. No daylight savings hassles to worry about.

    --
    Oh, no! You have walked into the slavering fangs of a lurking grue!
    1. Re:Simple by toleraen · · Score: 3, Interesting

      Come on pople its not a big deal.

      Tell that to my Outlook calendar. In two weeks when I host my telecon involving people from several states around the US, how many do you think are going to call on time, an hour early, or an hour late? I'm not looking forward to repeating myself over and over. Besides, 4k is chump change when you're talking about the time wasted when dozens of meetings get screwed up (mainly due to PEBKAC errors, but still.)

  2. A very simple *nix test by Iphtashu+Fitz · · Score: 5, Informative

    $ date --date="Mar 25 15:00:00 UTC 2006"
    $ date --date="Mar 25 15:00:00 UTC 2007"

    If the output of both shows the same time (eg. 10:00 EST) then you've got a problem. If they show different times (eg. 10:00 EST and 11:00 EDT) then your system is ok.

  3. Win vs Lin by stry_cat · · Score: 4, Informative

    Funny how with Linux there isn't any danger of your entire system breaking. I know we spent every day since the Windows patches were relased, testing and make sure the patches don't break anything. So far our Exchange server had to be restored from backup once already b/c all the calendar entries got screwed up.

    1. Re:Win vs Lin by EveryNickIsTaken · · Score: 4, Funny

      If you're competent in your Windows adminstration, then there isn't any danger of your entire system breaking.

    2. Re:Win vs Lin by Anonymous Coward · · Score: 5, Insightful
      If you're competent in your Windows adminstration, then there isn't any danger of your entire system breaking.


      Exactly. All the competent Windows admins have already switched to Linux.

    3. Re:Win vs Lin by fbjon · · Score: 3, Insightful

      Don't tell me you're timestamping with local time? Always use UTC and convert to local time on the fly, it avoids all these problems.

      --
      True confidence comes not from realising you are as good as your peers, but that your peers are as bad as you are.
  4. NTP? by CarpetShark · · Score: 3, Interesting

    How does this work with NTP? Will the system just stay up-to-date from another system that understands the new rules, or does NTP all work on UTC so that it's not aware of this, or something?

    1. Re:NTP? by overshoot · · Score: 4, Informative

      How does this work with NTP? Will the system just stay up-to-date from another system that understands the new rules, or does NTP all work on UTC so that it's not aware of this, or something?
      NTP will keep you system clock (as Heaven intends) coordinated with UTC.

      However, if you're using an old zoneinfo file for local time, the interpretation of that UTC time is something else again, and NTP won't help you at all.

      (Well, assuming you don't live in Arizona or Hawaii. Indiana's timing sucks, doesn't it?)

      --
      Lacking <sarcasm> tags, /. substitutes moderation as "Troll."
    2. Re:NTP? by E-Lad · · Score: 4, Informative

      I've seen and heard a lot of people say "I run NTP, I'm immune to this". Sadly, they're just showing that they don't know how NTP works, even on a basic level.

      NTP as a protocol tracks the number of seconds elapsed since 1 January, 1900 UTC. It has absolutely zero knowledge of timezones or what they mean. Your NTP daemon of choise just sits there keeping your system clock reasonably accurate with UTC time and it's the relevant libc C time functions that read that UTC time, then read in the set zoneinfo data, and combine the two to give you and your apps local time.

  5. Root Cause by overshoot · · Score: 5, Insightful
    Or, of course, you could have dealt with the root cause of the problem: the biannual insanity of running around changing otherwise perfectly good clocks.

    How many of you, after all, have told your State legislatures that this is stupid and it's time to opt out?

    --
    Lacking <sarcasm> tags, /. substitutes moderation as "Troll."
    1. Re:Root Cause by Rob+the+Bold · · Score: 4, Insightful

      How many of you, after all, have told your State legislatures that this is stupid and it's time to opt out?

      I like DST. I know how to set what clocks I have that still need to be changed. I enjoy the extra light at the end of the day. I am aware that I could just get up an hour early and try to convince everyone else that I have to deal with to do the same, but DST accomplishes that. Also, I live in a city that spans state lines, so having one state opt out would be a real hassle.

      I would much rather lobby my legislature to allow wine to be shipped directly to my door. For crying out loud, I can get ammo delivered (and left on the doorstep) without even a signature, why can't I buy wine directly.

      So, for all of those who dislike DST, try this: Just get up an hour later.

      --
      I am not a crackpot.
  6. Beware JVM Problems by tritonman · · Score: 5, Informative

    If you have systems running JVM 1.3 that interact with systems using 1.4 or above, beware, there are issues in how they implemented the fix in 1.3. In Java 1.3, the DST change is applied to ALL years, including prior to 2007, so if you have a remote object on 1.3 give a date to an application running in 1.4 (as a binary object, not just text) then it will cause problems, it will set it to 1 hour off, if you don't use timestamps, the default will be midnight, so one hour off will be the previous day. This has caused a bunch of problems where I work.

  7. Solaris Test (was Re:A very simple *nix test) by jmodule · · Score: 3, Informative

    For Solaris you can still use zdump, just with a timezone entry instead of /etc/localtime:

    zdump -v US/Eastern | grep 2007

    From BigAdmin

    --
    The jModule
  8. How may we help you? by djupedal · · Score: 4, Funny

    "Hello - this is Manny and I will be your corporate level support concierge for this session - how may I help you?"
    "Oh, Hi Manny, this is Stuart and I'm at our corporate IT HQ. We need help with the new DST configuration, please."

    "Ok, Stuart, I'll be happy to provide whatever help I can, if you will just tell me the name of the corporation you're with, along with the contract ID and your callback number, you can hang up and I'll call you back so we can get things started."
    "Ummm...Manny...excuse me, but I've never quite understood why you people always ask for the name of the corporation right off...what's up with that, if I may ask?"

    "Well, Stuart, in our effort to provide the best quality service, we need to know upfront which company we are serving so we can insure that our responses fit with such things as non-disclosures, corporate culture, etc. As an example, since this incident deals with DST, if you are with Siemens, we're instructed to use twenty-four hour time, such as the time now being sixteen-forty-two hundred hours. If you are with Hertz Car Rental, the time is four forty-two pm."

    "Oh, I see. Well, I'm with Microsoft, Manny, so what does the system say you should tell me?"
    "Microsoft - I see. Well, Stuart, the big hand is on the four and the little hand is......."

  9. How to verify whether your system is up to date by E-Lad · · Score: 3, Informative
    Use the zdump command:

    zdump -v [timezone] | grep 2007
    If your systems's zoneinfo files are up to date, you'll get output showing DST changes on March 11 and November 4, eg:

    $ zdump -v EST5EDT | grep 2007
    EST5EDT Tue Mar 6 13:59:24 2007 UTC = Tue Mar 6 08:59:24 2007 EST isdst=0
    EST5EDT Sun Mar 11 06:59:59 2007 UTC = Sun Mar 11 01:59:59 2007 EST isdst=0
    EST5EDT Sun Mar 11 07:00:00 2007 UTC = Sun Mar 11 03:00:00 2007 EDT isdst=1
    EST5EDT Sun Nov 4 05:59:59 2007 UTC = Sun Nov 4 01:59:59 2007 EDT isdst=1
    EST5EDT Sun Nov 4 06:00:00 2007 UTC = Sun Nov 4 01:00:00 2007 EST isdst=0
    That same command has worked for me on Solaris, Linux systems, and MacOS X.
  10. A problem with DST in general by Bigmilt8 · · Score: 3, Insightful

    Actually this isn't a problem with any OS or the computer industry. It is a problem with Daylight Savings Time. Man has been telling time for centuries and it wasn't until the DST mess that we started having issues. This is on the same lines as the US not using the metric system.

    1. Re:A problem with DST in general by westlake · · Score: 3, Informative
      Man has been telling time for centuries and it wasn't until the DST mess that we started having issues.

      For most of human history, time meant local solar time, or time by the moon and stars. It isn't until the mid 18th C. that the "longitude problem" is solved by the invention of precision marine chronometers. It isn't until the mid 19th C. that the "standard time" demanded by the telegraph, the railroad, trade and industry, intrudes on the lives of ordinary people.

  11. The short answer... by pla · · Score: 3, Informative

    Skipping all the crap and presuming you have an older distro that doesn't to automatic updates, I'll summarize the steps needed (Do this at your own risk, but it should work on any even remotely standard distro, even very old ones):

    cd /tmp
    wget --passive-ftp ftp://elsie.nci.nih.gov/pub/tzdata2007c.tar.gz
    tar -xzvf tzdata2007c.tar.gz
    zic northamerica
    ln -sf /usr/share/zoneinfo/EST5EDT /etc/localtime

    If you live outside the civilized world, insert the appropriate time zone in place of EST5EDT. ;-)

    And finally, verify it with:
    zdump -v /etc/localtime | grep 2007
    Which should say "Mar 11" and "Nov 4"

  12. I'm worried... by FuzzyDaddy · · Score: 3, Insightful
    I have an international flight on Monday the 12th.

    I'm coming four hours early.

    --
    It's not wasting time, I'm educating myself.
  13. Recent? It was two years ago... by binaryspiral · · Score: 4, Insightful

    It was two years ago that this was signed into affect... this shouldn't be the rush that Microsoft, Cisco, and all the rest are making it. Slackers wasted one and a half years doing almost nothing... and now we get this.

  14. Re:Looks like I'm screwed then by forrestt · · Score: 5, Funny

    You're posting to Slashdot about a problem with a date? And you think you're gonna get screwed? I'm not sure if this is redundant or wishful thinking. :)

  15. Windows-only "Y2DST" bugs by GodWasAnAlien · · Score: 3, Informative

    If events are scheduled using UTC, then timezone and dst make no difference.

    But if Outlook has "Y2DST" bugs, it stores or assumes that date/time is in local time, so events may be wrong if DST or the timezone of your server changes.

    Note that these bugs if they exist could be reproduced otherwise by changing the timezone while programs are running. Events should happen at the same time, independent of timezone. (A real situation would be flying a live system/laptop to a new timezone).

    But the bug in Windows is at a low level. Windows, for backward compatibility to DOS, assumes the hardware clock is local time. Any program that depends directly on the local time here, needs more than trivial algorithms to handle timezone and DST algorithms. These algorithms will fail, obviously if DST unexpectedly changes, and are probably in general not really expecting timezone to change. ( These algorithms could be compared with Y99-Y2K algorithms that tried to convert from a two digit year).
    And obviously any programs that have such low level DST/Timezone handling code would fail if someone set the not often used RealTimeIsUniversal=1 in Windows.

    In general no program should rely on local time, internally. Local time should only be used to convey information to the user. "You appointment is at XXX in your timezone", or "What time in your timezone would you like to schedule your meeting alarm?".

  16. Multiple timezone meetings by farnz · · Score: 4, Informative
    To give you an example of a meeting that spans several timezones; we needed to hold a teleconference with people in the UK, Australia and the US. Within the US, a company with offices in New York and San Francisco faces the same issue; you have people in different timezones, who need to agree on a time.

    It's not possible to get a perfect solution to the problem. The best design I've seen stores times in UTC, together with a description of the entry timezone and the offset. Each user has a current local timezone (and it's assumed that users who travel will track these problems for themselves). When a change to DST comes along, the administrator can do some or all of the following:

    • Adjust meetings such that meetings entered in the timezone that's changing are at the same local time (but a different UTC time).
    • Adjust meetings such that meetings entered in the timezone that's changing are at the same UTC time (but a different local time).
    • Alert everyone who's involved with a meeting where one or more participants are in a timezone that's changing to check that the time is still valid.

    The system also allows users to override the entry timezone on a per-entry basis. This means that I can enter a meeting in the UK marked as 9am Atlanta time, and be confident that it'll not only appear properly, but that if Atlanta's timezone changes on me, it'll be updated properly.