Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

clone doesn't copy tzInfo #24

davidmarble opened this Issue Jun 15, 2012 · 2 comments


None yet
2 participants

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

@longlho longlho added a commit that referenced this issue Jun 15, 2012

@longlho longlho add unit tests for #24 d888c16

longlho commented Jun 15, 2012

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment