scriptindex: Check if we can actually support %z
commit5aea386515f9a6d8a0275e3fae92d2c89d6673db
authorOlly Betts <olly@survex.com>
Mon, 17 Jul 2023 22:13:19 +0000 (18 10:13 +1200)
committerOlly Betts <olly@survex.com>
Mon, 17 Jul 2023 22:13:19 +0000 (18 10:13 +1200)
treeda96aa4d6462b182df3687b37e2ad15a5dd805ea
parent0ccb9493d52affe2d5819dd8b3e6a8675d6c2ad0
scriptindex: Check if we can actually support %z

Previously we assumed we could if struct tm had a tm_gmtoff member,
but that's only a necessary condition and not sufficient, e.g. on
Cygwin we have tm_gmtoff but strptime() doesn't currently understand
%z.
xapian-applications/omega/omegatest
xapian-applications/omega/scriptindex.cc