Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Java Date Locale settings - apply DST changes

Reply
Thread Tools

Java Date Locale settings - apply DST changes

 
 
Rakesh
Guest
Posts: n/a
 
      04-01-2009
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.
 
Reply With Quote
 
 
 
 
Arne Vajh°j
Guest
Posts: n/a
 
      04-01-2009
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
 
Reply With Quote
 
 
 
 
Roedy Green
Guest
Posts: n/a
 
      04-03-2009
On Wed, 01 Apr 2009 19:46:50 -0400, Arne Vajh°j <(E-Mail Removed)>
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
locale settings and date parsing under windows AlienBaby Python 4 02-03-2011 01:24 PM
Determine start and end of DST by locale - client side mikepuglisi@gmail.com Javascript 0 07-18-2007 12:26 AM
Affects of 'US DST 2007 changes' on GSL. perlguru C++ 1 02-20-2007 07:32 AM
Timezone.inDaylightTime(Date), DST Changes doomsday123@gmail.com Java 2 01-24-2007 09:04 PM
i18n problem, involving Locale.getDisplayLanguage and Locale.getDisplayCountry Maurice Hulsman Java 1 07-25-2004 06:11 PM



Advertisments