File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes GWT and the fly likes Date serialization reduces one date Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "Date serialization reduces one date" Watch "Date serialization reduces one date" New topic

Date serialization reduces one date

Adi Vicks

Joined: Feb 23, 2012
Posts: 9
Looks like for me the date serialization reduces date by one when it comes to client. example : if i save a date in database Feb 03, when I retrieve it to the client side it is coming as Feb 02, something happening during the rpc call, I am guessing could be date serialization over timezone issue.

Any idea ?
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10767

I remember encountering this when I was using GAE with GWT. Are you using GAE as well?

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Tina Smith
Ranch Hand

Joined: Jul 21, 2011
Posts: 208

Is the date correct at the server after it is read from the database but before it is sent to the client?

Everything is theoretically impossible, until it is done. ~Robert A. Heinlein
I agree. Here's the link:
subject: Date serialization reduces one date
It's not a secret anymore!