Java Date Locale settings - apply DST changes

Discussion in 'Java' started by Rakesh, Apr 1, 2009.

  1. Rakesh

    Rakesh Guest

    Hi -
    I am using jdk 1.5.0_06 . For a particular Date object - when we
    print it - it appears as -
    Fri Mar 27 09:49:12 GMT-05:00 2009 , whereas we really intend to
    have the DST settings applied as -
    Fri Mar 27 10:49:12 EDT 2009 .

    What do I need to do to get this change ? I looked up the
    tzupdater tool and installed it on my jdk but that does not seem to
    work. How do I verify if that has been installed correctly.
     
    Rakesh, Apr 1, 2009
    #1
    1. Advertising

  2. Rakesh

    Arne Vajhøj Guest

    Rakesh wrote:
    > I am using jdk 1.5.0_06 . For a particular Date object - when we
    > print it - it appears as -
    > Fri Mar 27 09:49:12 GMT-05:00 2009 , whereas we really intend to
    > have the DST settings applied as -
    > Fri Mar 27 10:49:12 EDT 2009 .
    >
    > What do I need to do to get this change ? I looked up the
    > tzupdater tool and installed it on my jdk but that does not seem to
    > work. How do I verify if that has been installed correctly.


    For workaround you can do:

    TimeZone.setDefault(TimeZone.getTimeZone("US/Eastern"));

    For a permanent solution check the time zone settings of
    your PC.

    Arne
     
    Arne Vajhøj, Apr 2, 2009
    #2
    1. Advertising

  3. Rakesh

    Roedy Green Guest

    On Wed, 01 Apr 2009 19:46:50 -0400, Arne Vajhøj <>
    wrote, quoted or indirectly quoted someone who said :

    >For a permanent solution check the time zone settings of
    >your PC.


    IN the control panel.

    See http://mindprod.com/webstart/setclock.html
    for a quick check of how it is set, and to get the time set
    accurately.
    --
    Roedy Green Canadian Mind Products
    http://mindprod.com

    "Think of the earth as a living organism that is being attacked by billions of bacteria whose numbers double every forty years. Either the host dies, or the virus dies, or both die."
    ~ Gore Vidal
     
    Roedy Green, Apr 3, 2009
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    2
    Views:
    997
  2. perlguru
    Replies:
    1
    Views:
    260
    John Harrison
    Feb 20, 2007
  3. donet programmer
    Replies:
    3
    Views:
    1,552
    Gregory A. Beamer
    Nov 20, 2009
  4. AlienBaby
    Replies:
    4
    Views:
    593
  5. Replies:
    0
    Views:
    112
Loading...

Share This Page