diff options
author | Sander Vanheule <sander@svanheule.net> | 2020-08-06 22:10:32 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-08-07 09:48:33 +0200 |
commit | 34271d38ae9087816219de0bf9ff5197483277e6 (patch) | |
tree | dfa63cbecc44909b70150beaa53ec00f8f86f186 /tools/firmware-utils/src/addpattern.c | |
parent | 7673df799496d98f1828152e1542af14f7708790 (diff) | |
download | upstream-34271d38ae9087816219de0bf9ff5197483277e6.tar.gz upstream-34271d38ae9087816219de0bf9ff5197483277e6.tar.bz2 upstream-34271d38ae9087816219de0bf9ff5197483277e6.zip |
tools/firmware-utils: use UTC for image timestamps
By using localtime() to determine the timestamp that goes into factory
images, the resulting image depends on the timezone of the build system.
Use gmtime() instead, which results in more reproducible images.
Signed-off-by: Sander Vanheule <sander@svanheule.net>
Diffstat (limited to 'tools/firmware-utils/src/addpattern.c')
-rw-r--r-- | tools/firmware-utils/src/addpattern.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/firmware-utils/src/addpattern.c b/tools/firmware-utils/src/addpattern.c index 9bc4865335..9791527878 100644 --- a/tools/firmware-utils/src/addpattern.c +++ b/tools/firmware-utils/src/addpattern.c @@ -296,7 +296,7 @@ int main(int argc, char **argv) return EXIT_FAILURE; } - ptm = localtime(&t); + ptm = gmtime(&t); if (3 != sscanf(version, "v%d.%d.%d", &v0, &v1, &v2)) { fprintf(stderr, "bad version string \"%s\"\n", version); |