Yes, We were having problems with the datefield defaulting the time to 
00:00:00 GMT-03. It would cause it to be seen as 22:00:00 GMT-05, previous 
day.
Since only the date and not daet time was being persisted...we got wacked. 
Quick solution was to set time to 12:00:00 local time after they select a 
date.
That way we could ignore timezone differences since it didn't effect day 
of month. 

Since we don't care about time...this worked.

Otherwise you would have to be sure to save datetime with offset, etc. 
Then be sure it converted back and forth...

Fun with Date class is fun, fun, fun.

Bryan 




"Douglas Knudsen" <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
02/29/2008 09:03 AM
Please respond to
[email protected]


To
[email protected]
cc

Subject
Re: [AFFUG Discuss] Datefield issues






Back when I used FDS and Java on the back side, we had fun with dates. 
Dates in AS transfer the TZ info to Java, the converse holds true too.  In 
our case we wanted all times in EST, so we had to 'time shift' all dates 
coming and going to the client using the timezoneOffset property of date. 
have to be careful of what your DB does too.  I'd try a trace() of your 
Date before it goes to Java land then a log() of that date in Java land 
before anything touches it so you can see what is happening. 


DK

On Thu, Feb 28, 2008 at 5:58 PM, Bryan Tidd <[EMAIL PROTECTED]> wrote:
It is definitely time zone related. I have tested changing my time zone 
related and receive the day off result.
Thinking maybe that the time zone info is not being transfered from teh 
Actionscript Value Object to the Java Value Object.
 
Thoughts?


 
On Thu, Feb 28, 2008 at 3:59 PM, <[EMAIL PROTECTED]> wrote:

I have an application that is hosted in the US UTC-5 EST and is utilized 
in Brazil UTC-3 hours BRT. 

It is a Flex application using Flex Data Services. It uses The Java 
version of the Spring framework to persist the data. 

My issue is that When a user selects a date via a Datefield date picker in 
the US, it is saved correctly. 
When they do so in Brazil, it is saved incorrectly..or atleast not the 
same as the date solected on the screen. 
Both sides have the latest Flash player installed, both have JRE 1.3.1_02. 


If they select today, it saves to the database as yesterday. 
If they select Feb 20th, 1970, it saves to the database as Feb 3rd, 1970. 

I'm looking for any suggestions in how to fix this thing. 

Bryan 
This e-mail message and all attachments transmitted with it may contain 
legally privileged and/or confidential information intended solely for the 
use of the addressee(s). If the reader of this message is not the intended 
recipient, you are hereby notified that any reading, dissemination, 
distribution, copying, forwarding or other use of this message or its 
attachments is strictly prohibited. If you have received this message in 
error, please notify the sender immediately and delete this message and 
all copies and backups thereof. 
Thank you.


------------------------------------------------------------- 
To unsubscribe from this list, simply email the list with unsubscribe in 
the subject line 

For more info, see http://www.affug.com 
Archive @ http://www.mail-archive.com/discussion%40affug.com/ 
List hosted by FusionLink 
------------------------------------------------------------- 


------------------------------------------------------------- 
To unsubscribe from this list, simply email the list with unsubscribe in 
the subject line 

For more info, see http://www.affug.com 
Archive @ http://www.mail-archive.com/discussion%40affug.com/ 
List hosted by FusionLink 
------------------------------------------------------------- 



-- 
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it? 
------------------------------------------------------------- 
To unsubscribe from this list, simply email the list with unsubscribe in 
the subject line 

For more info, see http://www.affug.com 
Archive @ http://www.mail-archive.com/discussion%40affug.com/ 
List hosted by FusionLink 
------------------------------------------------------------- 

**************************************************************************************
This e-mail message and all attachments transmitted with it may contain legally 
privileged and/or confidential information intended solely for the use of the 
addressee(s). If the reader of this message is not the intended recipient, you 
are hereby notified that any reading, dissemination, distribution, copying, 
forwarding or other use of this message or its attachments is strictly 
prohibited. If you have received this message in error, please notify the 
sender immediately and delete this message and all copies and backups thereof.

Thank you.
**************************************************************************************



-------------------------------------------------------------
To unsubscribe from this list, simply email the list with unsubscribe in the 
subject line

For more info, see http://www.affug.com
Archive @ http://www.mail-archive.com/discussion%40affug.com/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------

Reply via email to