mde / timezone-js

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

toGMTString() error #15

Closed giulianob closed 12 years ago

giulianob commented 12 years ago

When calling toGMTString(), I get this error:

Error: Timezone "GMT" is either incorrect, or not loaded in the timezone registry.

I do have the backwards timezone loaded which has the GMT timezone and still get this error. It seems like the logic to find the timezone is not working properly.

longlho commented 12 years ago

I'll revise the timezone lookup logic, getting tz info for Etc/UTC also gives errors but haven't got time to look at it yet.

longlho commented 12 years ago

fixed in commit e462509