Oh... also... to answer the original post. You'll want to do something like this: 1) Figure out what Timezone the current user's computer is set to. myDate.getTimezoneOffset(); 2) The timezoneOffset is... "The minutes you need to add to the computer's local time value to equal UTC. If your computer's time is set later than UTC, the return value will be negative." 3) Calculate the offset (in minutes) between the clients timezone and your target timezone. 4) Calculate your clock's values from there.
HTH, Nate On Wed, Apr 22, 2009 at 12:17 PM, Nate Beck <n...@tldstudio.com> wrote: > Timezones aren't supported in the Flash Player... you only have UTC time... > and then it derives your "local time" based on your computers timezone > offset. > I've talked about this quite a bit on FlexCoders (second half of the > conversation): > > http://www.nabble.com/flex-date-and-timezone-td21695609.html > > > On Wed, Apr 22, 2009 at 11:40 AM, Pedro Kostelec <pedrok...@gmail.com>wrote: > >> OH, there is a way to bring out zone related time in Flash? I only knew >> the >> way, that takes the time from the local computer. How'd you do it? >> Any tutorial or script? >> >> On Wed, Apr 22, 2009 at 8:31 PM, Weyert de Boer <w...@innerfuse.biz> >> wrote: >> >> > Ain't that the same as the UTC time? As far as I know UTC time is GMT >> which >> > is the UK time. Of course, you need to take the daylight saving into >> > account. >> > >> > Winter: UTC+0 (UTC=GMT) >> > Summer: UTC+1 (GMT+1) >> > >> > >> > >> > On Apr 22, 2009, at 8:16 PM, Pedro Kostelec wrote: >> > >> > Hello >> >> Is there a way to create a clock that would show UK time, regardless in >> >> which time zone you are? >> >> >> >> >> >> Thanks, >> >> >> >> Pedro Kostelec >> >> _______________________________________________ >> >> Flashcoders mailing list >> >> Flashcoders@chattyfig.figleaf.com >> >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >> >> > >> > _______________________________________________ >> > Flashcoders mailing list >> > Flashcoders@chattyfig.figleaf.com >> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > >> _______________________________________________ >> Flashcoders mailing list >> Flashcoders@chattyfig.figleaf.com >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > > > > -- > > Cheers, > Nate > ---------------------------------------- > http://blog.natebeck.net > > > -- Cheers, Nate ---------------------------------------- http://blog.natebeck.net _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders