tests: Fix a test which specifies expiration date.
authorNIIBE Yutaka <gniibe@fsij.org>
Fri, 8 Sep 2017 05:21:29 +0000 (14:21 +0900)
committerWerner Koch <wk@gnupg.org>
Mon, 11 Sep 2017 09:39:17 +0000 (11:39 +0200)
commita172759b5088ae086c0caa2e7d4d0ea346b28a90
tree015c6ad260cd779677716775e86b8608bf454098
parent827abe01a72a50eab1cdcde78985b42a4a8480fb
tests: Fix a test which specifies expiration date.

* tests/openpgp/quick-key-manipulation.scm: Fix expiration time
comparison.

--

This is a bug fix for Amelia Earhart who is probably in UTC-12.

When expiration date is specified, GnuPG interprets it as noon of the
date in local time.

Before this fix, the test compared the value by 2145916800 which is
2038-01-01 00:00:00 in UTC with allowance of 1 day.  When the test
was ran in UTC-12 timezone, it failed because of noon in the timezone
is midnight of the next day in UTC.

GnuPG-bug-id: 3393
Reported-by: Daniel Kahn Gillmor
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
tests/openpgp/quick-key-manipulation.scm