]> git.ipfire.org Git - thirdparty/moment.git/commit
Fix isSame for differently zoned moments
authorIskren Chernev <iskren.chernev@gmail.com>
Mon, 23 Dec 2013 06:07:00 +0000 (22:07 -0800)
committerIskren Chernev <iskren.chernev@gmail.com>
Mon, 23 Dec 2013 06:07:00 +0000 (22:07 -0800)
commit9c7617c15409fdb2db52a0ea41bea74558fabe64
tree3d2b372f65955ac2ea91e25026b718628aa8fad3
parente5187f3aea5b1008b845a49091d1b595f5bc078f
Fix isSame for differently zoned moments

isSame uses startOf and then compares milliseconds, but this misses the case of
different zones across the moments. startOf('day') in one timezone is different
than the other, so it was never successful.
moment.js
test/moment/is_same.js