owms

OpenWeatherMap based weather client
git clone git://git.vgx.fr/owms
Log | Files | Refs

commit 654846246418fba17dc9b7c6ba7ff904d8bd18be
parent 32235442b724fdac4b718b4b7642906035c4acc3
Author: Léo Villeveygoux <l@vgx.fr>
Date:   Tue,  1 Jun 2021 18:10:51 +0200

Fix timezone

Diffstat:
Mowms.sh | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/owms.sh b/owms.sh @@ -70,13 +70,13 @@ hour () { hours () { onecall $(first_match_coord "$1") |\ - jq -r '.hourly[]|(.dt | gmtime | strflocaltime("%HH: "))+(.temp|tostring)+"°C, "'\ + jq -r '.hourly[]|(.dt | localtime | strftime("%HH: "))+(.temp|tostring)+"°C, "'\ ' +(.pop|tostring)+" proba. de précipitations, "+(.clouds|tostring)+"% de couverture, "+.weather[0].description' } week () { onecall $(first_match_coord "$1") |\ - jq -r '.daily[]|(.dt | gmtime | strflocaltime("%a %e %b: "))+(.temp.min|tostring)+" à "+(.temp.max|tostring)+"°C, "'\ + jq -r '.daily[]|(.dt | localtime | strflocaltime("%a %e %b: "))+(.temp.min|tostring)+" à "+(.temp.max|tostring)+"°C, "'\ ' +(.pop|tostring)+" proba. de précipitations, "+.weather[0].description' }