I have seen this also, I have a server function which sends back to
the client the UNIX time in seconds, and I find that I have to
manually tell the client to do the offset:
var myDate:Date = new Date( unixSecs - (8*60*60*1000) );
since I want the time/date in separate pieces:
a.push(myDate.getMonth());
a.push(myDate.getUTCDate());
a.push(myDate.getUTCFullYear());
b.push(myDate.getUTCHours());
b.push(myDate.getUTCMinutes());
I tried other time methods mentioned in the docs but no luck. This is
in flex2 fyi.
d
--- In [email protected], "reflexactions" <[EMAIL PROTECTED]>
wrote:
>
> Need a quick fix for this problem.
>
> When I "print" a date object it tell me the tiemzone offset is GMT-0400.
>
> However when I get a date object and call its getTimezoneOffset
> function I get 5hrs not 4hrs.
>
> The difference is daylight savings and yes I have in my (XPPro) system
> I have checked to adjust for daylight savings.
>
> The problem this is causing is that some date calcualtions I need to
> make where I have to adjust for the timezoneoffset are one hour off.
>
> Seems odd to me...
>
> But is there a way to find out the correct current tiemzone offset i.e.
> the 4 hrs flex prints rather than the 5 hrs it returns from the method
> call.
>
> tks
>