[Design] Design] [Cosmo] Login-related workflows update
eggfree at eggfree.net
Mon Nov 13 22:17:38 PST 2006
> JS has nothing like that built in, but we are working on full-blown
> timezone support for dates in JS for Cosmo 0.6.
You mean like this?
var aDate = new Date().getTimezoneOffset()/60
The *getTimezoneOffset* method returns an integer value representing the
number of minutes between the time on the current machine and UTC.
and yes, this implies adjusting for daylight savings time, what it
cannot tell you is whether you are in daylight savings time, which may
be what you are alluding to, but for the purposes of setting a default
calendar offset (as opposed to entering times) this may be entirely
appropriate, especially if any sizable portion of users work in floating
As for rendering time, I assume the calendar events are returned in UTC
with an offset if a timezone is assigned.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Design