show scheduled date in same format

This commit is contained in:
Ben Harris 2020-06-22 20:51:57 -04:00
parent 59a2da03eb
commit 7c7db1b785
1 changed files with 1 additions and 1 deletions

2
bot.sh
View File

@ -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=$(jq -r .start <<< "$json")
nexttime=$(TZ=UTC date -d "$(jq -r .start <<< "$json")")
msg "$from" "$schedule: $nextdj will be on at $nexttime"
;;