[gnumeric] use a more appropriate time format



commit f23cacb3cdac1ba779788f59109cf14556abaa03
Author: Andreas J. Guelzow <aguelzow pyrshep ca>
Date:   Fri May 7 14:35:15 2010 -0600

    use a more appropriate time format
    
    2010-05-07  Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* openoffice-write.c (openoffice_file_save_real): use a more
    	  appropriate time format

 plugins/openoffice/ChangeLog          |    5 +++++
 plugins/openoffice/openoffice-write.c |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/plugins/openoffice/ChangeLog b/plugins/openoffice/ChangeLog
index d1001dd..74f9428 100644
--- a/plugins/openoffice/ChangeLog
+++ b/plugins/openoffice/ChangeLog
@@ -1,3 +1,8 @@
+2010-05-07  Andreas J. Guelzow <aguelzow pyrshep ca>
+
+	* openoffice-write.c (openoffice_file_save_real): use a more
+	  appropriate time format
+
 2010-04-29  Andreas J. Guelzow <aguelzow pyrshep ca>
 
 	* openoffice-write.c (odf_write_cell): only retrieve the value
diff --git a/plugins/openoffice/openoffice-write.c b/plugins/openoffice/openoffice-write.c
index a4c8df8..ae864b4 100644
--- a/plugins/openoffice/openoffice-write.c
+++ b/plugins/openoffice/openoffice-write.c
@@ -3979,7 +3979,7 @@ openoffice_file_save_real (GOFileSaver const *fs, GOIOContext *ioc,
 
 	state.date_long_fmt = go_format_new_from_XL ("yyyy-mm-ddThh:mm:ss");
 	state.date_fmt = go_format_new_from_XL ("yyyy-mm-dd");
-	state.time_fmt = go_format_new_from_XL ("\"PT\"hh\"H\"mm\"M\"ss\"S\"");
+	state.time_fmt = go_format_new_from_XL ("\"PT0\"[h]\"H\"mm\"M\"ss\"S\"");
 
 	/* ODF dos not have defaults per table, so we use our first table for defaults only.*/
 	sheet = workbook_sheet_by_index (state.wb, 0);



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