mde / timezone-js

DEPRECATED: Timezone-enabled JavaScript Date object. Uses Olson zoneinfo files for timezone data.
824 stars 182 forks source link

toJSON() missing #17

Closed tadfisher closed 12 years ago

tadfisher commented 12 years ago

Ecmascript 5 adds a Date.toJSON() method that returns an ISO8601-formatted string, which we use liberally in our project (with appropriate shims for older browsers). Can we have an "official" implementation for timezoneJS.Date?

tadfisher commented 12 years ago

Prototype's implementation is here: https://github.com/sstephenson/prototype/blob/1fb9728/src/lang/date.js#L47

longlho commented 12 years ago

I'll take a look at this. timezoneJS can't seem to find Etc/UTC correctly or I'm just missing something

longlho commented 12 years ago

fixed in commit b54c28aed