diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2010-07-11 16:49:02 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2010-07-12 17:12:01 (GMT) |
commit | 825bae173d584bf6c32d35cfeb3d979432ca10b7 (patch) | |
tree | af6adc199b20f11efbd42a0f48d52b4f91db6af9 | |
parent | c2ef0e90bc49e315f8241860419ef69320b7bd39 (diff) |
[pdf] Try to parse and format annots modified date
-rw-r--r-- | backend/pdf/ev-poppler.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc index 83bccdf..df5573b 100644 --- a/backend/pdf/ev-poppler.cc +++ b/backend/pdf/ev-poppler.cc @@ -2609,9 +2609,18 @@ ev_annot_from_poppler_annot (PopplerAnnot *poppler_annot, } if (ev_annot) { + time_t utime; + gchar *modified; + ev_annot->contents = poppler_annot_get_contents (poppler_annot); ev_annot->name = poppler_annot_get_name (poppler_annot); - ev_annot->modified = poppler_annot_get_modified (poppler_annot); + modified = poppler_annot_get_modified (poppler_annot); + if (poppler_date_parse (modified, &utime)) { + ev_annot->modified = ev_document_misc_format_date (utime); + g_free (modified); + } else { + ev_annot->modified = modified; + } poppler_annot_color_to_gdk_color (poppler_annot, &ev_annot->color); if (POPPLER_IS_ANNOT_MARKUP (poppler_annot)) { |