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.







_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Open Source Applications Foundation "Design" mailing list
http://lists.osafoundation.org/mailman/listinfo/design

Reply via email to