Birthday: Properly handle 00
This commit is contained in:
parent
828ad2692f
commit
1643b4fbd2
1 changed files with 1 additions and 2 deletions
3
neofetch
3
neofetch
|
@ -2965,8 +2965,7 @@ convert_time() {
|
||||||
|
|
||||||
# Convert 24 hour time to 12 hour time + AM/PM
|
# Convert 24 hour time to 12 hour time + AM/PM
|
||||||
case "$hour" in
|
case "$hour" in
|
||||||
0[0-9] | 1[0-2]) time="${hour}${min} AM" ;;
|
0[0-9] | 1[0-2]) time="${hour/00/12}${min} AM" ;;
|
||||||
00) time="12${min} PM" ;;
|
|
||||||
*) time="$((hour - 12))${min} PM" ;;
|
*) time="$((hour - 12))${min} PM" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue