mde / timezone-js

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

Timezone offsets negative #4

Closed dnathe4th closed 13 years ago

dnathe4th commented 13 years ago

Aren't all the timezone offsets defined backwards? If EST is 4 hours behind UTC shouldn't it be -240 rather than 240?

In other words shouldn't the getBasicOffset() negative sign on the return be removed?

mde commented 13 years ago

As noted in an exchange on Twitter, this is the ECMA standard for Dates and getTimezoneOffset.