E
epicwinter
In my database I have a lot of date fields that aren't time stamps but
just store dates. The problem is that when i load them into a java
Date it automatically assigns the timezone. The result will be a date
with 0 hours, 0 minutes, 0 seconds and the time zone of the server.
Like 02/20/2009 00:00:00 CST.
My application is a client server app using rmi. When the date is
passed to the client through all of the sudden the time zone which was
auto assigned when the date was populated from the server can change
the actual date. So if on the server I have 02/20/2009 00:00:00 CST
and the client is on pacific time then the date shows as the day
before. Because that date in pacific standard time is 02/19/2009
23:00:00 PST
So is there a way for all my dates to be completely ignorant of time
zones?
just store dates. The problem is that when i load them into a java
Date it automatically assigns the timezone. The result will be a date
with 0 hours, 0 minutes, 0 seconds and the time zone of the server.
Like 02/20/2009 00:00:00 CST.
My application is a client server app using rmi. When the date is
passed to the client through all of the sudden the time zone which was
auto assigned when the date was populated from the server can change
the actual date. So if on the server I have 02/20/2009 00:00:00 CST
and the client is on pacific time then the date shows as the day
before. Because that date in pacific standard time is 02/19/2009
23:00:00 PST
So is there a way for all my dates to be completely ignorant of time
zones?