diff options
author | Milan Crha <mcrha@redhat.com> | 2009-08-04 21:04:02 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2009-08-04 21:04:02 +0800 |
commit | b6313289303f2263649c70ea477e04aea4a994ec (patch) | |
tree | 36b4435a060aca6425e717b1b0ddd29efb8a0712 /calendar/gui/e-cell-date-edit-text.c | |
parent | bc301a8c3784610a0c55c9fb5056ec63ca574f4d (diff) | |
download | gsoc2013-evolution-b6313289303f2263649c70ea477e04aea4a994ec.tar gsoc2013-evolution-b6313289303f2263649c70ea477e04aea4a994ec.tar.gz gsoc2013-evolution-b6313289303f2263649c70ea477e04aea4a994ec.tar.bz2 gsoc2013-evolution-b6313289303f2263649c70ea477e04aea4a994ec.tar.lz gsoc2013-evolution-b6313289303f2263649c70ea477e04aea4a994ec.tar.xz gsoc2013-evolution-b6313289303f2263649c70ea477e04aea4a994ec.tar.zst gsoc2013-evolution-b6313289303f2263649c70ea477e04aea4a994ec.zip |
Bug #205137 - Configurable date formats in components
Diffstat (limited to 'calendar/gui/e-cell-date-edit-text.c')
-rw-r--r-- | calendar/gui/e-cell-date-edit-text.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/calendar/gui/e-cell-date-edit-text.c b/calendar/gui/e-cell-date-edit-text.c index 64dd48ddf1..5836b8ac66 100644 --- a/calendar/gui/e-cell-date-edit-text.c +++ b/calendar/gui/e-cell-date-edit-text.c @@ -33,6 +33,7 @@ #include <libedataserver/e-time-utils.h> #include <libedataserver/e-data-server-util.h> #include <e-util/e-util.h> +#include <e-util/e-datetime-format.h> #include <libecal/e-cal-time-util.h> #include "e-cell-date-edit-text.h" @@ -63,7 +64,6 @@ ecd_get_text (ECellText *cell, ETableModel *model, gint col, gint row) ECellDateEditText *ecd = E_CELL_DATE_EDIT_TEXT (cell); ECellDateEditValue *dv = e_table_model_value_at (model, col, row); struct tm tmp_tm; - gchar buffer[64]; if (!dv) return g_strdup (""); @@ -74,10 +74,7 @@ ecd_get_text (ECellText *cell, ETableModel *model, gint col, gint row) it will be set to the current timezone. See set_value(). */ tmp_tm = icaltimetype_to_tm_with_zone (&dv->tt, dv->zone, ecd->zone); - e_time_format_date_and_time (&tmp_tm, ecd->use_24_hour_format, - !dv->tt.is_date, FALSE, - buffer, sizeof (buffer)); - return g_strdup (buffer); + return e_datetime_format_format_tm ("calendar", "table", dv->tt.is_date ? DTFormatKindDate : DTFormatKindDateTime, &tmp_tm); } static void |