Simon Egersand
2016-12-21 cf1e721e0d7c69b5ce55978c213ef463ab477ebc
refs
author Simon Egersand <s.egersand@gmail.com>
Wednesday, December 21, 2016 00:29 +0100
committer Simon Egersand <s.egersand@gmail.com>
Wednesday, December 21, 2016 00:38 +0100
commitcf1e721e0d7c69b5ce55978c213ef463ab477ebc
tree dfeebe27d6af30dfa4b9b420265ea320c07a0516 tree | zip | gz
parent b1f53a20fab3c8d79ae8f80f2e8dba7f415a21e5 view | diff
Properly set lower/higher case with timeFormat

According to the moment.js API using a lower case 'a' in timeFormat
should make it use lower case 'am' and 'pm', and vice versa with higher
case. This commit also adds tests for these two specific cases and
formats the code with consistency in mind.
2 files modified
113 ■■■■■ changed files
src/TimeView.js 96 ●●●● diff | view | raw | blame | history
tests/datetime-spec.js 17 ●●●●● diff | view | raw | blame | history