You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
jq outputs wrong timezone information when using strflocaltime with the %Z formatter:
└─$ timedatectl
Local time: So 2022-05-08 13:48:24 CEST
Universal time: So 2022-05-08 11:48:24 UTC
RTC time: So 2022-05-08 11:48:24
Time zone: Europe/Berlin (CEST, +0200)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
└─$ jq -rn 'now | strflocaltime("%Y-%m-%dT%H:%M:%S%z")'
2022-05-08T13:48:33+0000
To Reproduce TZ=Asia/Tokyo jq -rn 'now | strflocaltime("%Y-%m-%dT%H:%M:%S%z")'
Describe the bug
jq outputs wrong timezone information when using strflocaltime with the
%Z
formatter:To Reproduce
TZ=Asia/Tokyo jq -rn 'now | strflocaltime("%Y-%m-%dT%H:%M:%S%z")'
Expected behavior
Output should be like the
date
command:Environment (please complete the following information):
Additional context
Might be related to #1912
The text was updated successfully, but these errors were encountered: