[goffice] formats: ensure we have yyyy-mm-dd.



commit ff2dea598134e940481b6c80477d1ed93868ec84
Author: Morten Welinder <terra gnome org>
Date:   Tue Jun 1 15:09:22 2010 -0400

    formats: ensure we have yyyy-mm-dd.

 ChangeLog               |    6 ++++++
 NEWS                    |    1 +
 goffice/utils/formats.c |    2 ++
 3 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index acd79fb..9103d89 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-06-01  Morten Welinder  <terra gnome org>
+
+	* goffice/utils/formats.c (_go_currency_date_format_init):
+	Unconditionally add formats "yyyy-mm-dd" and "yyyy-mm-dd
+	hh:mm:ss".
+
 2010-06-01  Jean Brefort  <jean brefort normalesup org>
 
 	* plugins/plot_barcol/gog-line.c (gog_line_view_render): Fix various
diff --git a/NEWS b/NEWS
index c6a2477..bf4dbf7 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@ goffice 0.8.6:
 Morten:
 	* Clean-up some win32 code.
 	* Fix point-on-graph crash.  [#620198]
+	* Ensure format menu has yyyy-mm-dd.
 
 --------------------------------------------------------------------------
 goffice 0.8.5:
diff --git a/goffice/utils/formats.c b/goffice/utils/formats.c
index 9bc3a00..5f12086 100644
--- a/goffice/utils/formats.c
+++ b/goffice/utils/formats.c
@@ -265,12 +265,14 @@ _go_currency_date_format_init (void)
 	add_dt_format (dt_hash, FALSE, &N, "dd/mm/yyyy");
 	add_dt_format (dt_hash, FALSE, &N, "dd/mm/yy");
 	add_dt_format (dt_hash, FALSE, &N, "d-mmm-yyyy");
+	add_dt_format (dt_hash, FALSE, &N, "yyyy-mm-dd");
 
 	fmt = go_format_new_magic (GO_FORMAT_MAGIC_SHORT_DATETIME);
 	if (fmt) {
 		add_dt_format (dt_hash, FALSE, &N, go_format_as_XL (fmt));
 		go_format_unref (fmt);
 	}
+	add_dt_format (dt_hash, FALSE, &N, "yyyy-mm-dd hh:mm:ss");
 
 	g_hash_table_destroy (dt_hash);
 



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