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 8484913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:30:01+00:00 2026-06-10T20:30:01+00:00

I have a really strange problem about showing dates. And particulary in windows. I

  • 0

I have a really strange problem about showing dates. And particulary in windows. I dont know why, when i get a Date from a query (Hibernate) it gives me one day less. when the data gets to the server the date is fine but when it gets to the client it gives one day less. For example: in the server the date is Fri Sep 24 00:00:00 1982 but when it gets to the client is Thu Sep 23 23:00:00 1982. As you can see its one difference day.

Ah and i almost forget to mention it happens on windows (Seven) as its TimeZone its UTC instead of GMT. Me and my colegues use Linux and there is no problem with it.

Is there any workaround about this?

Thanks in advance!

  • 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-10T20:30:02+00:00Added an answer on June 10, 2026 at 8:30 pm

    It’s not giving you a value a day earlier. It’s giving you a value an hour earlier (midnight on September 24th vs 11pm on September 23rd).

    That’s almost certainly a time zone issue, which is almost certainly just a reflection of how you’re formatting your dates. If you use SimpleDateFormatter, just set the TimeZone appropriately (your actual requirements will determine which zone that is) and you should get the same results.

    As an aside, in general I’d recommend using Joda Time as far as possible when it comes to date/time work in Java – it’s a much cleaner API than Date and Calendar.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a really strange problem in xpages regarding dates, the Notesdocument we have
I have this really strange problem where my entity framework query isn't enumerating correctly.
I have a really strange problem. I tryed to check my main page from
I have a really strange problem with SQL Server 2008. We have an e-commerce
I have a really strange problem and I'm completely puzzled. I have a piece
I'm having a really strange problem. I have 2 virtual machines running ubuntu 11.4
I've come across a really strange problem. I have written a simple Deck class
I have a really strange problem. I'm using jQuery 1.7.1 and UI 1.8.17 for
I have a very strange problem,I don't know whether it is awkward to normal
I have a really strange problem that I can't explain and fix, it is

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.