[flexcoders] Re: DateFormatter gives weird results

2008-07-02 Thread Chris
That worked. Thanks Doug. // converts the Date to UTC by adding or subtracting the time zone offset var PoffsetMilliseconds:Number = pTimeMS.getTimezoneOffset() * 60 * 1000; pTimeMS.setTime(pTimeMS.getTime() + PoffsetMilli

[flexcoders] Re: DateFormatter gives weird results

2008-06-26 Thread Doug Lowder
Hi Chris, It seems like you are located in a GMT -0500 timezone, and what looks like 19 hours being added to your time is actually 5 hours being subtracted (24 - 5 = 19) so you end up seeing 19 hundred hours from the previous day. This is because the Date() constructor with a single argument

[flexcoders] Re: DateFormatter gives weird results

2008-06-26 Thread Chris
Bump... --- In flexcoders@yahoogroups.com, "Chris" <[EMAIL PROTECTED]> wrote: > > So I have some code which formats milliseconds (for a video player) > in > to NN:SS format. When I try to add the hours (JJ:NN:SS), > DateFormatter adds 19 hours to the result. WTF? Code Below: > > priv