<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Sign PDF with digital signature"
href="https://bugs.freedesktop.org/show_bug.cgi?id=99416#c21">Comment # 21</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Sign PDF with digital signature"
href="https://bugs.freedesktop.org/show_bug.cgi?id=99416">bug 99416</a>
from <span class="vcard"><a class="email" href="mailto:huj@froreich-bioscientia.de" title="Hans-Ulrich Jüttner <huj@froreich-bioscientia.de>"> <span class="fn">Hans-Ulrich Jüttner</span></a>
</span></b>
<pre>(In reply to Adrian Johnson from <a href="show_bug.cgi?id=99416#c15">comment #15</a>)
<span class="quote">> + char buf[24];
> + time_t now = time(nullptr);
> + size_t size = strftime(buf, 24, "D:%Y%m%d%H%M%S%z", localtime(&now));
> + if (size >= 2 && size < 22)
> + {
> + // put timezone info into single quotes
> + buf[size] = buf[size-1];
> + buf[size-1] = buf[size-2];
> + buf[size-2] = '\'';
> + buf[++size] = '\'';
> + buf[++size] = '\0';
> + GooString gTime(buf, size);
> + vObj.dictAdd(copyString("M"), Object(gTime.copy()));
> + }
>
> PDF date format uses a single quote to separate the time zone hour and
> minute, not enclose the minutes. strftime "%z" on windows returns the
> timezone name, not the offset.
> </span >
<a href="http://www.verypdf.com/pdfinfoeditor/pdf-date-format.htm">http://www.verypdf.com/pdfinfoeditor/pdf-date-format.htm</a> says that the minutes
of the time zone in PDF date format are also followed by a single quote.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>