[evince] [pdf] Try to parse and format annots modified date



commit 825bae173d584bf6c32d35cfeb3d979432ca10b7
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Sun Jul 11 18:49:02 2010 +0200

    [pdf] Try to parse and format annots modified date

 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)) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]