Results 1 to 5 of 5
- 10-18-2010, 11:50 AM #1
Member
- Join Date
- Oct 2010
- Posts
- 3
- Rep Power
- 0
JRE date is different than OS date
Hello All,
I have a windows server 2003 machine, installed on it, a cisco product called "Cisco Voice Portal", this product runs on JRE of version 1_5_0_12.
Instantiating a Date object either by:
orJava Code:new Date();
always the date is one hour ahead of the system date.Java Code:Calendar.getInstance();
At first, i thought it is a timezone mismatch, however this is the output of printing the date object:
and the system clock is also in EST timezone. which means that timezones are the same.Java Code:Fri Oct 08 02:36:38 EST 2010
The system date is the correct one, the system machine is is Sydney, Australia.
Any suggestions to fix this? Thanks in advance.
- 10-18-2010, 12:33 PM #2
Sounds like a Daylight Saving Time issue to me.
New South Wales
db
- 10-19-2010, 09:50 AM #3
Member
- Join Date
- Oct 2010
- Posts
- 3
- Rep Power
- 0
Thanks Darryl, you are right.
The problem is that the tzupdater tool has a bug with the JRE version i'm using 1.5.0_12 and the fix is in version 1.5.0_13 and i cannot upgrade my JRE because it is shipped with the product, i tried replacing the files in: jre/lib/zi/Australia with ones OF jre 1.6, but it didn't make any difference.
Any suggestions? Thanks again.
- 10-19-2010, 12:01 PM #4
Did you try downloading and running the updater tool available on this page?
Timezones, Daylight Savings Time, and the Sun TZupdater for the Java Runtime Environment (JRE)
db
edit Also see
http://www.oracle.com/technetwork/ja...me-136440.html
- 10-20-2010, 10:07 PM #5
Member
- Join Date
- Oct 2010
- Posts
- 3
- Rep Power
- 0
Yes Darryl, i tried to run the tzupdater tool, but it didn't make any difference, seems to be a bug over this JRE see Bug ID: 6595137 (tz) support tzdata2007g.
Thank you very much for you interest. i really appreciate it.
Similar Threads
-
converting string (GMT date) to date in US time.
By JRuyechan in forum New To JavaReplies: 1Last Post: 10-15-2010, 07:07 AM -
julian date to full date format
By judy318 in forum New To JavaReplies: 7Last Post: 11-02-2009, 12:17 PM -
Compare date input to database with current date
By hungleon88 in forum Advanced JavaReplies: 2Last Post: 11-25-2008, 08:10 AM -
Creating a Gregorian Calendar using a Date object gives date - 1
By prachi_goliwadekar in forum New To JavaReplies: 1Last Post: 05-08-2008, 08:32 PM -
Difference between current date and anothe date
By vijay balusamy in forum New To JavaReplies: 1Last Post: 04-16-2008, 04:15 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks