{"action":"created","issue":{"url":"https://api.github.com/repos/rst2pdf/rst2pdf/issues/525","labels_url":"https://api.github.com/repos/rst2pdf/rst2pdf/issues/525/labels{/name}","comments_url":"https://api.github.com/repos/rst2pdf/rst2pdf/issues/525/comments","events_url":"https://api.github.com/repos/rst2pdf/rst2pdf/issues/525/events","html_url":"https://github.com/rst2pdf/rst2pdf/issues/525","id":60849145,"number":525,"title":"CreationDate metadata shows non-reproducible string representation of object instead of data (using sphinx)","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rst2pdf/rst2pdf/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/rst2pdf/rst2pdf/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/rst2pdf/rst2pdf/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-12T16:37:32Z","updated_at":"2015-08-26T17:10:54Z","closed_at":null,"body":"```\nThe people working on reproducible builds on Debian found out that the \nmonkey-patched PDFDate does not extend PDFObject, so Reportlab formats it using \nstr instead of .format(), resulting in a string like \n\"<rst2pdf.createpdf.PDFDate instance at 0x7fc7cd56b320>\" instead of a proper \ndate, which gets embedded in the CreationDate PDF metadata.\n\nhttps://bugs.debian.org/cgi-bin/bugreport.cgi?bug=777251\n\nI've checked that this happens when running rst2pdf from sphinx, but not when \nrunning it directly.\n\nThe attached patch comes directly from the debian bugreport.\n\nPlease answer the following questions, they are *very* important:\n\n* Version of rst2pdf? 0.93\n\n* Version of reportlab? 3.1.8\n\n* Are you using rst2pdf with Sphinx, and if true, what version? 1.2.3\n\n```\n\nOriginal issue reported on code.google.com by `elena.va...@gmail.com` on 9 Feb 2015 at 1:20\n\nAttachments:\n* [patch.diff](https://storage.googleapis.com/google-code-attachments/rst2pdf/issue-525/comment-0/patch.diff)\n"},"comment":{"url":"https://api.github.com/repos/rst2pdf/rst2pdf/issues/comments/135110833","html_url":"https://github.com/rst2pdf/rst2pdf/issues/525#issuecomment-135110833","issue_url":"https://api.github.com/repos/rst2pdf/rst2pdf/issues/525","id":135110833,"user":{"login":"pmaupin","id":2379062,"avatar_url":"https://avatars.githubusercontent.com/u/2379062?v=3","gravatar_id":"","url":"https://api.github.com/users/pmaupin","html_url":"https://github.com/pmaupin","followers_url":"https://api.github.com/users/pmaupin/followers","following_url":"https://api.github.com/users/pmaupin/following{/other_user}","gists_url":"https://api.github.com/users/pmaupin/gists{/gist_id}","starred_url":"https://api.github.com/users/pmaupin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmaupin/subscriptions","organizations_url":"https://api.github.com/users/pmaupin/orgs","repos_url":"https://api.github.com/users/pmaupin/repos","events_url":"https://api.github.com/users/pmaupin/events{/privacy}","received_events_url":"https://api.github.com/users/pmaupin/received_events","type":"User","site_admin":false},"created_at":"2015-08-26T17:10:54Z","updated_at":"2015-08-26T17:10:54Z","body":"Sure, I'd review a pull request.  Haven't gone back to look at all the bugs..."}}