summaryrefslogtreecommitdiff
path: root/git-branch.sh
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@osdl.org>2006-09-29 19:36:13 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-09-29 20:04:09 (GMT)
commit18b633cafcd43b83d752738fea62f185d4de1b91 (patch)
tree7ae588c6c22a1bf7b2f6f2ba5dccac390e9b2b4d /git-branch.sh
parentbc1a5807575b2f34538d4158834da6524a4fc1f7 (diff)
downloadgit-18b633cafcd43b83d752738fea62f185d4de1b91.zip
git-18b633cafcd43b83d752738fea62f185d4de1b91.tar.gz
git-18b633cafcd43b83d752738fea62f185d4de1b91.tar.bz2
Fix approxidate() to understand 12:34 AM/PM are 00:34 and 12:34
It just simplifies the whole thing to say "hour = (hour % 12) + X" where X is 12 for PM and 0 for AM. It also fixes the "exact date" parsing, which didn't parse AM at all, and as such would do the same "12:30 AM" means "12:30 24-hour-format" bug. Of course, I hope that no exact dates use AM/PM anyway, but since we support the PM format, let's just get it right. Signed-off-by: Linus Torvalds <torvalds@osdl.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-branch.sh')
0 files changed, 0 insertions, 0 deletions