Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror
×
Programming Software Technology IT

'Daylight Savings Bugs' Loom 403

An anonymous reader writes "ZDNet has front page coverage of the looming daylight savings changeover, and the bugs that may crop up this year. With the extension of daylight savings time by four weeks, some engineers and programmers are warning that unprepared companies will experience serious problems in March. While companies like Microsoft have already patched their software, Gartner is warning that bugs in the travel and banking sectors could have unforeseen consequences in the coming months. ' In addition, trading applications might execute purchases and sales at the wrong time, and cell phone-billing software could charge peak rates at off-peak hours. On top of that, the effect is expected to be felt around the world: Canada and Bermuda are conforming to the U.S.-mandated change, and time zone shifts have happened in other locales as well.'" Is this just more Y2K doomsaying, or do you think there's a serious problem here?
This discussion has been archived. No new comments can be posted.

'Daylight Savings Bugs' Loom

Comments Filter:
  • Not such a big deal (Score:3, Interesting)

    by ThePolkapunk ( 826529 ) on Friday February 16, 2007 @01:15PM (#18040144) Homepage
    Is it a problem? Yes, but it's nowhere near as big an issue as Y2K was. The biggest issue for my company is that many of our machines are 2000, so we had to create our own patch, since Microsoft is only patching 2000 for people who pay their extortion fees.

    The majority of our applications just go off of the OS time, so as long as the OS is patched, everything else is fine. The DBA's will be coming in over a weekend to test the patches on the Unix servers, and the Server guys will be doing the same for the Windows servers, but other than that, there's not that much we have to do.

    The financial industry will probably have more problems than most, but still, it should be negligable compared to Y2K.
  • Brazil (Score:1, Interesting)

    by Anonymous Coward on Friday February 16, 2007 @01:15PM (#18040146)
    The summer time start/end date changes almost every single year here in Brazil, and the world doesn't end because of that. It will probably be a non-event, much like Y2K was.
  • Re:Linux? (Score:3, Interesting)

    by profplump ( 309017 ) <zach-slashjunk@kotlarek.com> on Friday February 16, 2007 @01:17PM (#18040188)
    Or you could put configuration data like say, time zone rules, into an external file so they could be easily updated without recompiling the kernel or rebooting. Yeah, I vote for that plan.
  • by Ubergrendle ( 531719 ) on Friday February 16, 2007 @01:20PM (#18040256) Journal
    Our datacentre has ~ 500 Solaris / HP-UX / AIX boxen, and ~ 1000 Windows servers.

    15 minute change window to apply patch, another 15 minutes to reboot successfully and come back online. Multiply 30 min x 1500 = 45,000 minutes, or 750 hours. But we only have one weekly change window, Sunday mornings from 2-6am. Assuming finite number of staff, contingency (there's always going to be some problems), etc... we started last September. We might just make the deadline.

    So yes, I think its a bit of a problem. There's also the unspoken assumption that people learned their lessons during Y2k and have sufficient date handling logic to address changes to DST...nothing hard coded in the underlying applications.

  • by michaelmalak ( 91262 ) <michael@michaelmalak.com> on Friday February 16, 2007 @01:22PM (#18040280) Homepage
    Newer JDK's already have the new time zone rules encoded, and this can cause subtle bugs to suddenly surface. It turns out that Date.equals() does a deep object compare, including the time zone rules (not just which time zone you're in, but the rules regarding when daylight savings starts and ends). Thus if you have multiple JVMs involved, such as one on a database server and one on an application server running slightly different JVM revs (e.g. 1.4.2_08 vs. 1.4.2_11), then naive date comparisons (using equals() instead of equality on getTime()) can fail.
  • Re:Linux? (Score:2, Interesting)

    by Larry Lightbulb ( 781175 ) on Friday February 16, 2007 @01:40PM (#18040610)
    Our Solaris servers need patching for the changes, and will need rebooting afterwards; our Windows servers need a line in the reg changing and no reboot.
  • NTP for Everyone (Score:3, Interesting)

    by Doc Ruby ( 173196 ) on Friday February 16, 2007 @01:40PM (#18040614) Homepage Journal
    The NTP server system is very reliable. Its servers should also include software upgrades that clients can fetch, with an authorization system in the clients. The US NIST should produce reference standard software that the NTP servers can offer, digitally signed by NIST, and test/certify/sign 3rd party SW. And the Congress should require the insurance industry to adopt uniform standards for liability when companies don't upgrade to the industry operations standard.

    This function is too important to leave to corporations that have demonstrated they upgrade themselves in their own interest only when it's a years-long campaign that everyone talks about. So it's time to automate the process. Otherwise, Americans and others in the global economy will pay much higher costs in damage and loss later, cleaning up the mess.
  • i recognize the interest in giving people more daylight hours for harvest/ farming purposes... and how that's still nice in a service/ industrial work setting to have barbeque time after work

    but why does that mean that time has to be shifted twice every year? why not just shift time by an hour once, just one time, and be done with the nonsense forever? why is it necessary to go back to "real" time in the winter?

    heck, sometimes i think we should redefine 6 am as 3 am. then everyone wakes up and goes to work in the middle of the "night", and, after work in the summer, you have daylight until midnight!

    we're dealing with an abstract concept here. we can do whatever we want with time. we don't have to abide by some weird need to swithc back to "real" time in the winter. just shift it once in favor of farmers/ after work barbequers and be gone with it. it's just so stupid and pointless and a waste of effort to constantly shift back and forth
  • Re:Mod Parent Up (Score:3, Interesting)

    by mike2R ( 721965 ) on Friday February 16, 2007 @02:12PM (#18041242)
    But what you are asking us [ie people who know crap all about Y2K] to believe is that the fear was so intense that every important computer system everywhere was patched. The obvious doubt is that this seems very unlikely; that kind of efficiency is not frequent in human affairs.

    Since the only people who really know about it are the people who made money out of it, it's hard to accept a claim of "we all just did our jobs and saved the world."
  • by Marillion ( 33728 ) <ericbardes&gmail,com> on Friday February 16, 2007 @02:15PM (#18041296)

    Most programs that use the standard C library do use UTC and just don't realise it. The most important thing to realise about daylight savings time is that Time isn't changing. The sun still rise the after DST as before DST (astronomical adjustments due to Earth's heliocentric orbit not withstanding). But, how we read the clock is changing.

    I heard one company just say, "we're going to just change the clock on the computer." This makes me cringe.

    All file time timestamps on all versions of UNIX and versions of Windows derived from NT store times as Julian seconds since 1970-01-01 00:00:00 GMT. Changing the system clock means that the times will be stored wrong even though they display properly in the local timezone.

    Other places to watch out for are applications that manage their own timezone data. Java is a prime example. Major database vendors would be another.

  • by pe1chl ( 90186 ) on Friday February 16, 2007 @02:32PM (#18041666)
    When you are so careful about file timestamps, you should know that Windows does not translate them correctly anyway.
    Windows has no knowledge about timezone history. It translates the UTC time to local time using its current time-offset, which depends on the current DST status only.
    So, when you now look at a file timestamp (in the GUI) that you created last summer, you will find that its time is one hour off.

    Even when Microsoft would finally fix this (they consider it a feature rather than a bug), they would probably not fix the historic aspect.
    I.e. now that the beginning of DST shifts one month, and you would look at a file created last year in that one month window, it would probably still be off.

    Timezone handling in Windows just sucks. It does not have to be that bad, it works fine in Linux (including historic changes). Microsoft just has decided to make a bad implementation and then never fix it, in the name of backward compatability.
  • This -is- a big deal (Score:2, Interesting)

    by muirhejs ( 968962 ) on Friday February 16, 2007 @02:33PM (#18041682)
    I work for a large bank; we have had very aggressive efforts to get everything patched in time and have spent thousands of man-hours getting this done. Bear in mind that all of this becomes ever-more difficult when you have to schedule the patching, follow change control process, etc... even if it doesn't require an outage. Some of the items that are involved that I haven't seen much discussion on: - Solaris - AIX - HP-UX - Java - Oracle All of these need patched; java is particularly troublesome because there are so many instances it spewed everywhere.
  • by Tired and Emotional ( 750842 ) on Friday February 16, 2007 @02:35PM (#18041710)
    IT at my company told us several weeks ago NOT to take the Microsoft patch as they were working on their own. They rolled it out to us this last week.

    It was a complete disaster. Now my calendar entries for the affected week are mostly off by an hour (not all of them mind you) while a friend who displays dual timezones now has one less timezone in the continental US - the west coast is only two hours behind the east coast. Probably he can fix this by turning it off and back on, but it looks like we will have to rebook all meetings.

    Of course, one can certainly argue that correctly implemented software would not have a problem since everything would be done internally in UTC, but clearly not all software is correctly implemented.

    As for the stupid change - if they had brought us into line with Europe there would have been some logic to the change. This one was just make work for a cheap political stunt.

  • Not that simple. (Score:3, Interesting)

    by centron ( 61482 ) on Friday February 16, 2007 @02:39PM (#18041782) Homepage

    It would be nice if it were that simple. Take, for example, a cell phone billing system since that is referenced in the article. When bill processing happens, the actual time of the call needs to be on the bill. Customers wouldn't be too happy if all the call times were in GMT, would they? So the GMT values stored in the database need to be compared against a table that tells it what offset to apply to the time, based on the time and date the call was made. If that table isn't updated with new start and end dates, not only does the customer see the wrong time on the bill, and say "I didn't call anyone at 7pm!", but they got may have been billed for it at the wrong rate.

    Calendar appointments in your PIM could all be shifted an hour (or not shifted an hour) and you'd miss your doctors appointment. Java contains a copy of the offset tables as well, so admins need to make sure they've got the Java TZ Updater rolling to every copy of the JRE in every Java-based program on every computer in their organization (plus the actual standard JRE install).

    My point is that this isn't a nothing problem, and a lot of administrators, programmers, companies, and universities have to scramble to get everything fixed correctly.

  • by LMacG ( 118321 ) on Friday February 16, 2007 @02:41PM (#18041820) Journal
    "In no way were dates routinely stored as two byte characters (99 being the max) when 1 byte would get you to 255 easily." Wrong. In EVERY WAY dates were routinely stored as three sets of two byte characters.

    What you are completely ignoring is that the vast majority of the code that had to be examined and patched was written in COBOL. COBOL that store dates as a string of six digits. Digits that were stored in many cases as EBCDIC characters, not hexadecimal integer values. And just to make it fun, in some cases the source code was not available.

    "[A]nyone that created a four digit date by String Concat: "19" + String(date) would " probably not have been born yet when the programs that needed to be fixed were written. It wasn't the programs that were written in the 1990's that had to be dealt with, it was the ones written in the 1960's. And if you don't believe there were any of those in use, then I suggest you have no idea what's really happening at your bank. Or in the US air traffic control system, for that matter.
  • by curunir ( 98273 ) * on Friday February 16, 2007 @03:54PM (#18042948) Homepage Journal
    FYI...This latest "fiddling" with DST is designed to figure out just how much energy DST actually saves (if any). By adjusting the date when DST goes into effect, and measuring the difference in energy consumption compared to previous years, we should get a good idea of whether DST is providing any energy savings and whether that savings is worth the trade-offs (there are quantifiable costs associated with DST...things like increased auto accident rates around the changeover dates).

    There's also some notion that in the modern world DST actually increases the country's energy consumption. DST was originally conjured up in a world where the bulk of the energy consumption came from lighting. In that world, giving people daylight at certain hours of the day reduced their need for artificial light. In our modern world, however, things aren't that simple. For one, we have lighting that uses less energy than before. But the biggest difference is that we now have air conditioners, something that uses significantly more energy than our modern lighting. In the modern world, by ensuring that there is natural light when people get home from work, we increase the likelyhood that they will need to use their air conditioners.

    So, we really have no idea whether DST actually serves its purpose anymore or if it's merely an unecessary inconvenience for any modernized country. This year's change in the time that DST goes into effect will give us a good indication of whether we can eliminate DST entirely.
  • Re:Mod Parent Up (Score:4, Interesting)

    by Stanistani ( 808333 ) on Friday February 16, 2007 @04:31PM (#18043568) Homepage Journal
    Where I worked, we had a lot of old but reliable systems. We tested our mainframes, minicomputers, PCs, and network systems - they failed in varying and catastrophic ways.

    We spent millions of dollars for all new systems, and thousands of hours in planning, procurement, implementation, and testing. We literally pushed all the boxes on the datacenter floor to the wall and built anew.

    It was a horrendous chore, and I didn't get to spend New Year's with my family.

    Perhaps we should have let you all freeze in the dark.

Get hold of portable property. -- Charles Dickens, "Great Expectations"

Working...