Please join us at the new JavaWorld Q&A Forums. Your existing login will work there. The discussions here are now read-only.


JavaWorld Talkback >> 87879

Pages: 1
JavaWorld
addict


Reged: 06/20/03
Posts: 482
Set your Java clocks for the new DST
      #41296 - 11/30/06 11:06 PM

Set your Java clocks for the new DST

Post Extras: Print Post   Remind Me!   Notify Moderator  

Unregistered




sf.net - timezonepatch [Re: JavaWorld]
      #41414 - 12/06/06 01:03 PM

There is a small project hosted on sf.net made to work around this problem.
http://sourceforge.net/projects/timezonepatch/


Post Extras: Print Post   Remind Me!   Notify Moderator  
JavaWorld Fan
Unregistered




Re: Set your Java clocks for the new DST [Re: JavaWorld]
      #41596 - 12/14/06 05:37 AM

well .... so many options to choose from ....
replacing the TZDB in the (JAVA_HOME)\jre\lib\zi seem to be the best reasonable solution there is , in fact i think it is the best way to fix this problem. However out of curiousity , does Sun approve of such method and if not why ?


Post Extras: Print Post   Remind Me!   Notify Moderator  
Gili_Nachum
stranger


Reged: 12/14/06
Posts: 4
Re: sf.net - timezonepatch [Re: Anonymous]
      #41603 - 12/14/06 12:43 PM

Quote:

There is a small project hosted on sf.net made to work around this problem.
http://sourceforge.net/projects/timezonepatch/




Intersting approch, but why plant stuff inside the /ext directory when you can just update the data itself.
Gili.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Gili_Nachum
stranger


Reged: 12/14/06
Posts: 4
Re: Set your Java clocks for the new DST [Re: JavaWorld Fan]
      #41604 - 12/14/06 12:47 PM

Quote:

well .... so many options to choose from ....
replacing the TZDB in the (JAVA_HOME)\jre\lib\zi seem to be the best reasonable solution there is , in fact i think it is the best way to fix this problem. However out of curiousity , does Sun approve of such method and if not why ?




lew.yobs@sun.com from Sun commented this:
We are working to publish a supported tool for updating timezone data in installed JRE/JDK disk images applicable for versions 1.4 and later. We welcome you and your customers to try the beta.

This tool is available now for download from:
http://java.sun.com/javase/tzupdater_README.html


Post Extras: Print Post   Remind Me!   Notify Moderator  

Unregistered




Re: Set your Java clocks for the new DST [Re: JavaWorld]
      #41612 - 12/14/06 10:21 PM

I haven't read so much outdated crap in a long time. For IBM JVM: see http://www-128.ibm.com/developerworks/java/jdk/dst/index.html
To replace the timezone info on the SUN JVM, SUN has a tool: http://java.sun.com/j2se/1.5.0/tzupdater_README.html


Post Extras: Print Post   Remind Me!   Notify Moderator  

Unregistered




Re: Set your Java clocks for the new DST [Re: JavaWorld Fan]
      #41642 - 12/16/06 11:24 AM

What's soooo outdated?!
Currently Sun's TZ update tool is still in Beta and should not be used on production environments. IBM tool is also quite new.
All of this tools were developed only because of the US 2007 DST roles change, years before that there was no official option to update a JRE TZ info.
This article also serve to make people more aware to the various DST issues and calls for Java to use a different TZ and DST mechanisms (e.g. relying the host OS TZDB).


Post Extras: Print Post   Remind Me!   Notify Moderator  

Unregistered




Re: Set your Java clocks for the new DST [Re: JavaWorld]
      #42017 - 12/29/06 05:48 AM

Hi,

First of all, I'd like to make sure to everyone I know nothing about Java, except that it's now making my life a lot more complicated.

I can see no reason for Java not taking the date/time/DST information from the OS. I think that would solve most if not all problems, since OS suppliers usually have tools to update TZs as required.

I support an application written in Java that drives me crazy every year when DST starts or ends, because in Brazil, as stated in the article, DST starts end ends at different dates every year and, though the OS is adequately patched, Java never is.

I've spent the past few days researching this subject and found nothing really useable. I know exactly what changes I need for my TZ but I can't find a tool or a procedure to make the change. Can anyone tell me how it's done? That would be useful.

Thanks

Serginho


Post Extras: Print Post   Remind Me!   Notify Moderator  

Unregistered




Re: Set your Java clocks for the new DST [Re: JavaWorld Fan]
      #42018 - 12/29/06 05:58 AM

Correction: I found "Sun Java SE TZupdater tool" useful and enough to solve at least part of the problems, like 2 days marked as the 13th on October in the Java app. I'll conduct more tests to see if everything is now solved.

In any case, I still have to rely on Sun's wish to update the tool for the next year. I still would like to be able to make the changes myself.

Thanks

Serginho


Post Extras: Print Post   Remind Me!   Notify Moderator  
rptrevor
stranger


Reged: 12/29/06
Posts: 1
Re: Set your Java clocks for the new DST [Re: JavaWorld]
      #42024 - 12/29/06 11:38 AM

I see most of the discussion here relates to converting UTC time to the proper local time.

My question is in the opposite direction: converting a local time (String) to UTC time. Specifically the double "fall back" times from, for example, 1:00am-1:59am, in the U.S. Pacific timezone last October 29th (2006). Is there anything in java.util that will return the SECOND UTC time given a 1:00am value? I always get the FIRST UTC time when I use the "America/Los_Angeles" timezone.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Gili_Nachum
stranger


Reged: 12/14/06
Posts: 4
Re: Set your Java clocks for the new DST [Re: rptrevor]
      #42108 - 01/03/07 11:45 AM

No problem.
Just get the first "UTC time" and add an hour to it on your next command...
though, I'm sure you can get it in the first command, checkout the API's...


Post Extras: Print Post   Remind Me!   Notify Moderator  

Unregistered




Re: Set your Java clocks for the new DST [Re: Gili_Nachum]
      #43379 - 02/08/07 01:48 PM

Is there a way to retrieve the dst setting before running the update?

Post Extras: Print Post   Remind Me!   Notify Moderator  
Ideablogger
Unregistered




Re: Set your Java clocks for the new DST [Re: JavaWorld Fan]
      #43813 - 02/22/07 02:27 AM

Hope this helps:
Test your Java for new Daylight Saving Time changes


Post Extras: Print Post   Remind Me!   Notify Moderator  

Unregistered




Re: Set your Java clocks for the new DST [Re: JavaWorld]
      #43978 - 02/28/07 10:51 PM

There is a good bit of information on the DST change over at Java Sanity

This article covers the various methods and versions for available to update the top 4 Java distributions. For example, were you aware that you could get a tzupdater for 1.3.1 from Sun?


Post Extras: Print Post   Remind Me!   Notify Moderator  
Chester
stranger


Reged: 03/05/07
Posts: 1
Re: Set your Java clocks for the new DST [Re: JavaWorld Fan]
      #44148 - 03/05/07 01:41 PM

Don't want to add yet another piece to the puzzle, but I created this fix that does not require changes to either the JVM or the application, and reads the timezone info from *nix tz database's default location (/etc/localtime):
timefix


Post Extras: Print Post   Remind Me!   Notify Moderator  

Unregistered




Re: Set your Java clocks for the new DST [Re: Chester]
      #44275 - 03/09/07 12:21 AM

Any workaround for 1.1.8 JRE ?

Post Extras: Print Post   Remind Me!   Notify Moderator  
Chetan Khandar
Unregistered




Re: Set your Java clocks for the new DST [Re: JavaWorld Fan]
      #44292 - 03/09/07 01:51 PM

Yes, upgrade...

Post Extras: Print Post   Remind Me!   Notify Moderator  

Unregistered




Re: Set your Java clocks for the new DST [Re: JavaWorld Fan]
      #44443 - 03/13/07 10:59 AM

Any luck (or better yet code )for 1.1.8. I cant upgrade too old of an application

Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 1 anonymous users are browsing this forum.

Moderator:   

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 12038

Rate this topic

Jump to

Contact us JavaWorld

Powered by UBB.threads™ 6.5.5