[NTG-pdftex] Patch CreationDate
Martin Schroeder
ms@artcom-gmbh.de
Thu, 31 Jul 2003 17:04:06 +0200
On 2003-07-31 16:11:15 +0200, Heiko Oberdiek wrote:
> Perhaps we have to take daylight into account in some way:
>
> if (daylight) {
> diff_minutes += 60;
> }
Can we be sure that the daylight offset is always and everywhere
60 minutes? Also it conforms to "standard US daylight savings
time rules" -- whatever that may be.
I experimented with gmtime, mktime and difftime:
gtm = gmtime(&tt);
gt = mktime(gtm);
seconds = (long int) difftime(tt, gt);
fprintf(stderr, "\nseconds: %li\n", seconds);
hours = seconds/3600;
minutes = (labs(seconds) - (abs(hours) * 3600L))/60;
sprintf (&time_str[size], "%+03i'%02d'", hours, minutes);
But seconds is 3600 while it should be 7200. :-(
I also tried leaving out the tz information in /CreationDate by
setting O to Z and leaving out the offset; but AR5 ignores any
offset and interprets the time as CEST. :-(
Best regards
Martin
--
Martin Schröder, MS@ArtCom-GmbH.DE
ArtCom GmbH, Lise-Meitner-Str 5, 28359 Bremen, Germany
Voice +49 421 20419-44 / Fax +49 421 20419-10