Parse unknown timezones as UTC#1047
Merged
adrianschroeter merged 1 commit intoopenSUSE:masterfrom Jan 7, 2025
Merged
Conversation
46a1dfb to
d0846a0
Compare
Without this change, parsing changelog entries such as
Tue Mar 28 07:25:39 WEST 2017 - someone@suse
would produce a Mar 27 date in the .spec file, because
TZ=CET perl -e 'use Date::Parse; print str2time("28 Mar 2017")'
1490652000
considers the local timezone and maps to
date -d @1490652000 -u -Iseconds
2017-03-27T22:00:00+00:00
This patch was done while working on reproducible builds for openSUSE.
d0846a0 to
b383274
Compare
bmwiedemann
added a commit
to bmwiedemann/obs-service-source_validator
that referenced
this pull request
May 13, 2025
Same as in openSUSE/obs-build#1047
bmwiedemann
added a commit
to bmwiedemann/obs-build
that referenced
this pull request
Sep 10, 2025
for catching openSUSE#1099 and openSUSE#1047 and other weirdness, such as that the first entry is parsed differently. Might need adaption for code fixes.
bmwiedemann
added a commit
to bmwiedemann/obs-build
that referenced
this pull request
Sep 10, 2025
for catching openSUSE#1099 and openSUSE#1047 and other weirdness, such as that the first entry is parsed differently. Might need adaption for code fixes.
bmwiedemann
added a commit
to bmwiedemann/obs-build
that referenced
this pull request
Sep 25, 2025
for catching openSUSE#1099 and openSUSE#1047 and other weirdness, such as that the first entry is parsed differently. Might need adaption for code fixes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Without this change, parsing changelog entries such as
Tue Mar 28 07:25:39 WEST 2017 - someone@suse(fromyast2.changes)would produce a
Mar 27date in the .spec file, becauseTZ=CET perl -e 'use Date::Parse; print str2time("28 Mar 2017")' 1490652000considers the local timezone and maps to
This patch was done while working on reproducible builds for openSUSE.