Skip to content

Wrong timezone names in strftime/strflocaltime for DST #1912

@trantor

Description

@trantor

Describe the bug
jq does not print the timezone correctly expanding the %Z in the time format for strftime/strflocaltime when it comes to DST.
To Reproduce
Using the example from the wiki...

$ TZ=Europe/Rome ./jq-linux64 -cn 'now|strflocaltime("%Y-%m-%dT%H:%M:%S %Z")'
"2019-05-28T17:10:54 CET"

$ TZ=Europe/Rome date +"%Y-%m-%dT%H:%M:%S %Z"
2019-05-28T17:10:54 CEST

date reports, correctly, CEST as the timezone taking DST into account. jq does not.

Expected behavior
The output of jq to specify the correct timezone following DST

Environment (please complete the following information):

  • Linux Ubuntu 16.04
  • jq version 1.6

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions