Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9174161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:42:34+00:00 2026-06-17T16:42:34+00:00

When I do: new Date(); Year, day and other things are OK but hour

  • 0

When I do:

new Date();

Year, day and other things are OK but hour and minute is wrong. I use 64 bit Windows 7 at my computer and:

Windows time is OK,
Bios Time is OK,
Windows Time Zone is OK,
Windows Time Zone at Regedit is OK

However when I check date object at Java (I use Java 1.6) id of zone info is America/Caracas which should be Europe/Istanbul

What can be the problem, any ideas?

PS: I don’t want to pass time zone as VM parameter, I don’t want to use a Calendar object cos I have some libraries that uses Date object instead of anything, I just want to learn the problem.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T16:42:34+00:00Added an answer on June 17, 2026 at 4:42 pm

    I think this blog can help you.

    Quote from the blog post to solve the issue:

    After opening the date/time dialog from the Windows XP Control Panel, and applying one of following changes, Java API starts working correcty:

    • Changing date/time manually and then changing back to original correct time.
    • Changing timezone and then back to original one.
    • Requesting automatic time update from time server.

    For the records and from the same blog:

    Some further investigation revealed that:

    • People complain about wrong timezone issues on Sun Java Virtual Machine since JRE 1.3.
      Several bug reports were submitted against Sun Java Virtual Machine during last ten years about wrong default timezone.
    • Nearly all reports were rejected by Sun as unreproducible.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know how to use new Date(UTCStrings) to local timezone. But now, the question
Besides the DateTime ctor (new DateTime(year, month, day)) , is there any other way
function GetDaysInMonth(month, year) { return 32 - new Date(year, month, 32).getDate(); } Ok, I
I love the new DATE datatype in SQL Server 2008, but when I compare
I want to use a standard date format that displays date, month and year
I'd like to define a time of day, without necessarily specifying a year, month,
I group my data by hour like this: group c by new { date
I use this to get the date: var currentTime = new Date() var month
var date = new Date();//Mon Mar 15 2010 12:40:05 GMT+0300 (MSK) var omg =
std = new Date(2012-06-22 00:05:00); std_string = std.getHours() + : + std.getMinutes(); On mobile

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.