The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Fixing the DST Issue

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Fixing the DST Issue Posted: Mar 12, 2007 3:36 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Fixing the DST Issue
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement

Support has a patch available for current and older versions of VW - and Alan Lovejoy has helpfully posted a comprehensive answer as well, which I quote nearly in full here:

One way to make the necessary change is to evaluate the following "do it" (which is correct for Pacific Time):


TimeZone 
    setDefaultTimeZone: 
        (TimeZone 
            timeDifference: -8 "Pacific Time"
            DST: 1 at: 2
            from: 73 "Second Sunday of March"
            to: 311 "First Sunday of November"
            startDay: #Sunday).

Instead of the "timeDifference: -8" which is correct for Pacific Time, Mountain Time has a time difference of -7 hours, Central Time has a time difference of -6 hours, and Eastern Time has a time difference of -5 hours. Arizona is the big exception, since it does not observe daylight saving time (but Navajo reservations in Arizona do observe DST!) The Arizona rules haven't changed.

Another way to get the correct rules is to install the TimeZone-External Repository-Olson TZDB package, which can be downloaded from the Chronos web site, or simply by clicking on the following link: TimeZone-External Repository-Olson TZDB (read and follow the installation instructions.)

Once the TimeZone-External Repository-Olson TZDB package has been installed (according to the instructions,) evaluating one of the following "do its" will update "Core.TimeZone default" with the correct rules:


 (TimeZone at: 'America/New_York') beReference
 (TimeZone at: 'America/Indiana/Indianapolis') beReference
 (TimeZone at: 'America/Chicago') beReference
 (TimeZone at: 'America/Denver') beReference
 (TimeZone at: 'America/Boise') beReference
 (TimeZone at: 'America/Phoenix') beReference
 (TimeZone at: 'America/Los_Angeles') beReference 
 (TimeZone at: 'America/Nome') beReference
 (TimeZone at: 'America/Adak') beReference
 (TimeZone at: 'Pacific/Honolulu') beReference

Yet another way to get the correct time zone rules is to install Chronos.

Technorati Tags: ,

Read: Fixing the DST Issue

Topic: Heresy and Fried Onions Previous Topic   Next Topic Topic: Efficient don't work for people.

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use