mde / timezone-js

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

clone doesn't copy tzInfo #24

Closed davidmarble closed 12 years ago

davidmarble commented 12 years ago

When I clone a timezoneJS.Date object, everything seems to be copied except for tzInfo. Is this an oversight?

longlho commented 12 years ago

I've added unit tests for this and it seems to behave correctly. Can you clarify this a bit? _tzInfo is private though so it's not the best practice to access it directly. You can use `getTimezone

davidmarble commented 12 years ago

Ah. Seems to be ok. Just spent a bit looking more at this, and _tzInfo is just for cached access.