]> git.ipfire.org Git - thirdparty/moment.git/commit
zone setter can now skip adjusting the hour 1468/head
authorIskren Chernev <iskren.chernev@gmail.com>
Thu, 6 Feb 2014 18:48:02 +0000 (10:48 -0800)
committerIskren Chernev <iskren.chernev@gmail.com>
Thu, 6 Feb 2014 18:50:21 +0000 (10:50 -0800)
commitde6b2362251f6de2a8a9f1acf8a73772b965384f
tree85d6caa0af8383a7e51ad452801f8c31ad6048d0
parent8b333f544bed4ebbc27eb8429974f5ac3e950e81
zone setter can now skip adjusting the hour

When you change the zone you'd expect the time to remain the same, but if
you're doing something low-level you might want just the zone offset to change.

Add a second argument to zone that would allow the caller to disable adjusting
the hour when setting a zone.
moment.js