in reply to Re: How To Modify PDF Metadata
in thread How To Modify PDF Metadata [SOLVED]

Thank you very much hippo for advice.

For my rehabilitation i would like to say that i was a bit confused about this issue. I observed different behavior of my code on Win, Linux and Mac. And the various timestamp formats that one can pass to PDFs are a mess and put me over the edge. Perhaps i didn't see the basic problem and jumped to some wrong conclusions ;-).

For completeness:

"$mday is the day of the month and $mon the month in the range 0..11..."
karls-mac-mini:monks karl$ perl -E '$day=(localtime)[3]; say $day;' 13 karls-mac-mini:monks karl$ perl -E '$month=(localtime)[4]; say $month; +' 5 karls-mac-mini:monks karl$ perl -E '$month=(localtime)[4]; say ++$mont +h;' 6 karls-mac-mini:monks karl$ date +%m 06

D'oh!

Update: I just run my modified code on a PDF created on Win:

CreationDate was 06.06.2015 16:12 and now it is 06.06.2015 18:12.

This crap drives me insane.

Edit: Minor changes. Ain't no fun no more.

Best regards, Karl

«The Crux of the Biscuit is the Apostrophe»

Replies are listed 'Best First'.
Re^3: How To Modify PDF Metadata
by Laurent_R (Canon) on Jun 13, 2015 at 18:50 UTC
    Hmm, not sure to understand exactly your problem, but this two-hours difference may be the difference between localtime (time in the local time zone) and gmtime (UTC time), which is two hours in the time zone where both you and I live.

    Or did I miss the point?

      "...Or did I miss the point?"

      I guess not Laurent_R. Or i don't know it better for the moment. But please see my second update in my OP.

      Best regards, Karl

      «The Crux of the Biscuit is the Apostrophe»