GNOME Bugzilla – Bug 752860
[PATCH] SummaryInformation dates are parsed incorrectly
Last modified: 2016-12-20 09:34:20 UTC
Created attachment 308128 [details] Log Hi, The _SummaryInformation test fails on 32-bit platforms (see https://buildd.debian.org/status/package.php?p=msitools&suite=unstable for details). I'm attaching the log from an i386 build. Regards, Stephen
https://github.com/GNOME/msitools/pull/1 fixes this.
Created attachment 341397 [details] [review] Bug fix (subtract 1900 from tm.tm_year) The attached patch fixes the bug (tested in Debian).
The following fix has been pushed: df915de Bug 752860 — correctly parse dates
Created attachment 342249 [details] [review] Bug 752860 — correctly parse dates In struct tm, tm_year is the year minus 1900; this patch fixes parse_filetime() and correct the testsuite appropriately. This fixes #752860 and allows the tests to pass on 32-bit platforms (previously they failed because 3912 doesn't fit in 32-bit time_t). Signed-off-by: Stephen Kitt <steve@sk2.org>