forked from tilderadio/radiobot
show scheduled date in same format
This commit is contained in:
parent
59a2da03eb
commit
7c7db1b785
2
bot.sh
2
bot.sh
|
@ -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"
|
||||
;;
|
||||
|
||||
|
|
Loading…
Reference in New Issue