show time as 24h instead of 12h

This commit is contained in:
Ben Harris 2020-06-27 19:35:15 -04:00
parent fe4b8f137c
commit c91c02278a
1 changed files with 2 additions and 2 deletions

4
bot.sh
View File

@ -158,7 +158,7 @@ do
;;
time|date|now)
msg "$from" "UTC time is currently $(TZ=UTC date)"
msg "$from" "UTC time is currently $(LANG=C TZ=UTC date)"
;;
np)
@ -181,7 +181,7 @@ do
# get next scheduled streaming time
json=$(curl -s "https://radio.tildeverse.org/api/station/1/schedule?rows=1" | jq ".[]")
nextdj=$(jq -r .name <<< "$json")
nexttime=$(TZ=UTC date -d "$(jq -r .start <<< "$json")")
nexttime=$(LANG=C TZ=UTC date -d "$(jq -r .start <<< "$json")")
msg "$from" "$schedule - $nextdj will be on at $nexttime"
;;