Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isDSTShifted not returning results relative to the specified time zone #88

Closed
mattjohnsonpint opened this issue May 28, 2014 · 1 comment

Comments

@mattjohnsonpint
Copy link
Contributor

When using moment-timezone, moment functions that are time-zone dependent should honor that zone. This appears to work with the zone function, but not with isDSTShifted.

var tz = 'Europe/Paris';
var dt = '2014-05-14 12:34:56';
moment.tz(dt,tz).isDSTShifted()  // returns false, should return true

See also: http://stackoverflow.com/a/23671211/634824

@mattjohnsonpint
Copy link
Contributor Author

Nevermind, I was confusing isDSTShifted with isDST. My bad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant