[Design] Design] [Cosmo] Login-related workflows update
Jeremy Epstein
eggfree at eggfree.net
Mon Nov 13 22:17:38 PST 2006
Mathew wrote:
> 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
document.writeln(aDate )
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
time.
As for rendering time, I assume the calendar events are returned in UTC
with an offset if a timezone is assigned.
Jeremy.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osafoundation.org/pipermail/design/attachments/20061113/ac8d7338/attachment.html
More information about the Design
mailing list