mde / timezone-js

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

Set in specific time TZ and not use UTC #116

Closed adrian-chang closed 10 years ago

adrian-chang commented 10 years ago

So I have an issue I'm not seeing how to fix.

I'm looking for a way to basically to do basic time conversions without having to always convert to UTC first since I don't think there a way in library to do it that's explained well.

Example:

8:00 p.m. america/denver

Converts to

7:00 p.m. america/los_angeles.

Is there a method or a set of steps I can do to perform this type of timezone translation? Don't see it at all after scanning the code 3+ times.

adrian-chang commented 10 years ago

Actually I'm going to close this, for folks who have a problem use getUTCDateProxy() method.