From 8fbc8579f2481dc3eeb962e99522047291e16fbe Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Thu, 11 Feb 2021 06:51:21 -0500 Subject: Allow zone information to be omitted from timestamp strings --- include/qpdf/QUtil.hh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include/qpdf/QUtil.hh') diff --git a/include/qpdf/QUtil.hh b/include/qpdf/QUtil.hh index 09a6c181..5b1f8aae 100644 --- a/include/qpdf/QUtil.hh +++ b/include/qpdf/QUtil.hh @@ -203,8 +203,9 @@ namespace QUtil // Convert a QPDFTime structure to a PDF timestamp string, which // is "D:yyyymmddhhmmss" where is either "Z" for UTC or - // "-hh'mm'" or "+hh'mm'" for timezone offset. Examples: - // "D:20210207161528-05'00'", "D:20210207211528Z". See + // "-hh'mm'" or "+hh'mm'" for timezone offset. may also be + // omitted. Examples: "D:20210207161528-05'00'", + // "D:20210207211528Z", "D:20210207211528". See // get_current_qpdf_time and the QPDFTime structure above. QPDF_DLL std::string qpdf_time_to_pdf_time(QPDFTime const&); -- cgit v1.2.3-54-g00ecf