[goffice] GOFormat: select a proper default time format.



commit 13d99837c7873751325855b2f513f896829da64c
Author: Morten Welinder <terra gnome org>
Date:   Fri May 29 19:05:49 2009 -0400

    GOFormat: select a proper default time format.
---
 ChangeLog                 |    6 ++++++
 goffice/utils/go-format.c |    4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 3592555..7fe6a90 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-05-29  Morten Welinder  <terra gnome org>
+
+	* goffice/utils/go-format.c (go_format_default_date_time): Make
+	this GO_FORMAT_MAGIC_SHORT_TIME instead of just picking the fifth
+	format we happen to generate.
+
 2009-05-28  Andreas J. Guelzow  <aguelzow pyrshep ca>
 
 	* goffice/utils/go-format.c (cb_attrs_as_string): handle "scale"
diff --git a/goffice/utils/go-format.c b/goffice/utils/go-format.c
index 6476611..e919146 100644
--- a/goffice/utils/go-format.c
+++ b/goffice/utils/go-format.c
@@ -4876,8 +4876,8 @@ GOFormat *
 go_format_default_date_time (void)
 {
 	if (!default_date_time_fmt)
-		default_date_time_fmt = go_format_new_from_XL (
-			go_format_builtins[GO_FORMAT_TIME][4]);
+		default_date_time_fmt =
+			go_format_new_magic (GO_FORMAT_MAGIC_SHORT_TIME);
 	return default_date_time_fmt;
 }
 #endif



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