I searched for some time about java.util.Date Serialization and problems with different local clients / servers.
For those of you who are not informed about this, here is a brief explanation:
GWT Session Date Serialization in RPC is performed depending on the locales that you have. Therefore, if the client has different locales, the user can enter one date, and the server will eventually save another date in the database, depending on its locale.
This is the expected behavior and in many cases seems correct.
For example, if you are planning a meeting for a certain date / hour from a browser in New York, it is correct that the guy checking the time of the meeting in SF sees the corresponding value of the language standard.
How about a date of birth? In this case, if you were born on December 5, it does not seem that some guy in China read that you were born on December 6.
Some guys say that one solution can use strings instead of dates, but I donโt think so, mainly because, for example, you could not add or subtract strings.
So, the best way to solve this, I think, is custom serialization, but unfortunately GWT provides its own Date_CustomFieldSerializer .
And for what I read, the only solution for this is your own version of this file and recompilation of GWT sources. I donโt want to do this, so I ask if anyone knows a better solution, or if the GWT guys are planning, for example, some plugin serialization infrastructure for future releases.
Thanks in advance. Daniel