Commit d375aa24 authored by Dylan Araps's avatar Dylan Araps

Birthday: Fix bug with 0:00

parent 665e9ceb
...@@ -2965,7 +2965,7 @@ convert_time() { ...@@ -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-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" ;; *) time="$((hour - 12))${min} PM" ;;
esac esac
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment