From 7c7db1b7852f6f31945e793370147acbfa8b6a73 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Mon, 22 Jun 2020 20:51:57 -0400 Subject: [PATCH] show scheduled date in same format --- bot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.sh b/bot.sh index 81eecee..6218147 100644 --- a/bot.sh +++ b/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" ;;