Commit fd54fad
authored
Parse unknown timezones as UTC (#1047)
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.1 parent b4ce84e commit fd54fad
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
0 commit comments