Birthday: Fix bug with 0:00

This commit is contained in:
Dylan Araps 2016-12-16 17:38:54 +11:00
parent 665e9ceb68
commit d375aa24d6
1 changed files with 1 additions and 1 deletions

View File

@ -2965,7 +2965,7 @@ convert_time() {
# Convert 24 hour time to 12 hour time + AM/PM
case "$hour" in
0[0-9] | 1[0-1]) time="${hour/00/12}${min} AM" ;;
[0-9] | 0[0-9] | 1[0-1]) time="${hour/00/12}${min} AM" ;;
*) time="$((hour - 12))${min} PM" ;;
esac