Results 1 to 5 of 5
  1. #1
    guirgis is offline Member
    Join Date
    Oct 2010
    Posts
    3
    Rep Power
    0

    Exclamation 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:
    Java Code:
    new Date();
    or
    Java Code:
    Calendar.getInstance();
    always the date is one hour ahead of the system date.
    At first, i thought it is a timezone mismatch, however this is the output of printing the date object:
    Java Code:
    Fri Oct 08 02:36:38 EST 2010
    and the system clock is also in EST timezone. which means that timezones are the same.
    The system date is the correct one, the system machine is is Sydney, Australia.
    Any suggestions to fix this? Thanks in advance.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,232
    Rep Power
    19

    Default

    Sounds like a Daylight Saving Time issue to me.
    New South Wales

    db

  3. #3
    guirgis is offline Member
    Join Date
    Oct 2010
    Posts
    3
    Rep Power
    0

    Default

    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.

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,232
    Rep Power
    19

  5. #5
    guirgis is offline Member
    Join Date
    Oct 2010
    Posts
    3
    Rep Power
    0

    Default

    Quote Originally Posted by Darryl.Burke View Post
    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
    Timezone Updater Tool
    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

  1. converting string (GMT date) to date in US time.
    By JRuyechan in forum New To Java
    Replies: 1
    Last Post: 10-15-2010, 07:07 AM
  2. julian date to full date format
    By judy318 in forum New To Java
    Replies: 7
    Last Post: 11-02-2009, 12:17 PM
  3. Compare date input to database with current date
    By hungleon88 in forum Advanced Java
    Replies: 2
    Last Post: 11-25-2008, 08:10 AM
  4. Creating a Gregorian Calendar using a Date object gives date - 1
    By prachi_goliwadekar in forum New To Java
    Replies: 1
    Last Post: 05-08-2008, 08:32 PM
  5. Difference between current date and anothe date
    By vijay balusamy in forum New To Java
    Replies: 1
    Last Post: 04-16-2008, 04:15 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •