aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/browser.js
diff options
context:
space:
mode:
authorPhilip Roberts2013-01-30 10:50:34 +0100
committerIgor Minar2013-02-07 01:47:19 -0800
commit8d34bf2feaa303ef286e3309ad766ff7d15f8b11 (patch)
tree6879e83bff79b6a02a9a96ea4f04455513b79d47 /src/ng/browser.js
parent8801e69dba5d5713bb25de7203a73e5b503694e0 (diff)
downloadangular.js-8d34bf2feaa303ef286e3309ad766ff7d15f8b11.tar.bz2
fix(date): invert timezone sign and always display sign
This commit fixes #1261 and #1532. This covers two separate issues: - Positive timezones were being formatted without a leading `+` resulting in a formatting string like: "HH:MM:ssZ" giving "12:13:141000" instead of "12:13:14+1000". Fixed by checking if timezone is > 0 and adding a leading "+". - Timezone output signs were inverted. mock.TzDate expects the timezone _offset_ as it's first argument, _not_ the timezone. This means that a mock.TzDate with a positive offset should result in a date string with a negative timezone, and vice-versa. Closes #1261, #1532
Diffstat (limited to 'src/ng/browser.js')
0 files changed, 0 insertions, 0 deletions