mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-20 18:57:12 +00:00
Birthday: Fix 12:00
This commit is contained in:
2
neofetch
2
neofetch
@@ -2965,7 +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/00/12}${min} AM" ;;
|
0[0-9] | 1[0-1]) time="${hour/00/12}${min} AM" ;;
|
||||||
*) time="$((hour - 12))${min} PM" ;;
|
*) time="$((hour - 12))${min} PM" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user