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