diff options
author | Milan Crha <mcrha@redhat.com> | 2009-08-04 21:04:02 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-08-12 03:44:27 +0800 |
commit | 50302d03b3ce145b165db2ddef4e92ad190cbef9 (patch) | |
tree | 4a804f72f256ef774d6f0f23c84643e42cc10083 /calendar/gui/e-calendar-view.c | |
parent | cd6f86108bfc34db41de71f1e00c7e7768cb4816 (diff) | |
download | gsoc2013-evolution-50302d03b3ce145b165db2ddef4e92ad190cbef9.tar.gz gsoc2013-evolution-50302d03b3ce145b165db2ddef4e92ad190cbef9.tar.zst gsoc2013-evolution-50302d03b3ce145b165db2ddef4e92ad190cbef9.zip |
Bug #205137 - Configurable date formats in components
Diffstat (limited to 'calendar/gui/e-calendar-view.c')
-rw-r--r-- | calendar/gui/e-calendar-view.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/calendar/gui/e-calendar-view.c b/calendar/gui/e-calendar-view.c index 0b7c52fd00..3575c11eda 100644 --- a/calendar/gui/e-calendar-view.c +++ b/calendar/gui/e-calendar-view.c @@ -33,6 +33,7 @@ #include <libedataserver/e-time-utils.h> #include <e-util/e-util.h> #include <e-util/e-error.h> +#include <e-util/e-datetime-format.h> #include <e-util/e-dialog-utils.h> #include <e-util/e-icon-factory.h> #include <libecal/e-cal-time-util.h> @@ -2044,16 +2045,11 @@ tooltip_grab (GtkWidget *tooltip, GdkEventKey *event, ECalendarView *view) static gchar * get_label (struct icaltimetype *tt, icaltimezone *f_zone, icaltimezone *t_zone) { - gchar buffer[1000]; struct tm tmp_tm; tmp_tm = icaltimetype_to_tm_with_zone (tt, f_zone, t_zone); - e_time_format_date_and_time (&tmp_tm, - calendar_config_get_24_hour_format (), - FALSE, FALSE, - buffer, 1000); - return g_strdup (buffer); + return e_datetime_format_format_tm ("calendar", "table", DTFormatKindDateTime, &tmp_tm); } void |