Fix conversion from ISO 8601 to PDF date string

The code used to unintentionally drop the minutes from the timezone
offset, see issue #392. This is now fixed.
This commit is contained in:
Sven Neumann 2020-02-11 11:24:16 +01:00 committed by Bryce Harrington
parent 5d97c12859
commit c43ff33c43

View file

@ -1666,7 +1666,8 @@ iso8601_to_pdf_date_string (const char *iso)
if (strlen (p) < 3)
goto finish;
strncat (buf, p + 1, 3);
strncat (buf, p + 1, 2);
strcat (buf, "'");
finish:
strcat (buf, ")");