Thanks once again Matt. always a helping hand. Your code worked. It 
adjusted the date value. Do you have any recommendation how i would 
apply this code before binding to a datagrid. My result handlers 
after an async call usually look like this

function resultHandler(result){
  datagrid1.dataProvider = result;
}

i suppose i'd have to do a 'for' loop around the resultset, adjust 
the value and then bind.
any other ideas

regards
bod



--- In flexcoders@yahoogroups.com, Matt Chotin <[EMAIL PROTECTED]> wrote:
> You may need to create a new Date that eliminates the timezone 
aspect.
> 
>  
> 
> var minsOff = oldDate.getTimezoneOffset();
> 
> var noTimezoneDate = new Date(oldDate.getTime();
> 
> noTimezoneDate.setMinutes(oldDate.getMinutes() + minsOff);
> 
>  
> 
> I haven't tried this but see if you can run with it.
> 
>  
> 
> Matt
> 
>  
> 
>  
> 
>   _____  
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of bhaq1972
> Sent: Thursday, May 19, 2005 5:06 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] how can i stop my date-time timezone data 
from being
> adjusted
> 
>  
> 
> Is there a quick way to stop flash player from manipulating my 
date-
> time data before its rendered.
> 
> In my oracle db i have a column of data held as a date eg. '18-04-
05 
> 15:40' but when i render this data in a datagrid/list etc, it 
shows up 
> as '18-04-05 16:40'. 
> 
> I want this date time to be treated as data. 
> 
> TIA
> 
> BTW when i take off the timezone adjustement setting on my pc, the 
> data is rendered correctly.
> 
> 
> 
> 
> 
>   _____  
> 
> Yahoo! Groups Links
> 
> *     To visit your group on the web, go to:
> http://groups.yahoo.com/group/flexcoders/
> <http://groups.yahoo.com/group/flexcoders/> 
>   
> *     To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]
subject=Unsubscribe> 
>   
> *     Your use of Yahoo! Groups is subject to the Yahoo!
> <http://docs.yahoo.com/info/terms/>  Terms of Service.




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to