[cairo-commit] 2 commits - src/cairo-pdf-interchange.c
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Nov 20 15:20:44 UTC 2020
src/cairo-pdf-interchange.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit e3415a319dfde45cff4993cd861a3dde6a1b5d8e
Merge: fda1f07bd 6eb3c9d36
Author: Uli Schlachter <psychon at znc.in>
Date: Fri Nov 20 15:20:41 2020 +0000
Merge branch 'fix-iso8601_to_pdf_date_string' into 'master'
Fix conversion from ISO 8601 to PDF date string
Closes #392
See merge request cairo/cairo!35
commit 6eb3c9d3647d626418317977f84c5b8ac29ec5af
Author: Sven Neumann <sven at svenfoo.org>
Date: Tue Feb 11 11:24:16 2020 +0100
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.
diff --git a/src/cairo-pdf-interchange.c b/src/cairo-pdf-interchange.c
index 7d8981b09..0f896d351 100644
--- a/src/cairo-pdf-interchange.c
+++ b/src/cairo-pdf-interchange.c
@@ -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, ")");
More information about the cairo-commit
mailing list