diff options
author | Damon Chaplin <damon@ximian.com> | 2001-10-27 08:07:29 +0800 |
---|---|---|
committer | Damon Chaplin <damon@src.gnome.org> | 2001-10-27 08:07:29 +0800 |
commit | 7b5415e5005aa1b7142d288af466b58b7e95ac42 (patch) | |
tree | 0204cc0c59e6c3b8bbb5c1fb556fed1b3a04f6d7 /calendar/gui/e-itip-control.c | |
parent | 067aaf149ec31e530a344167f59a895eefb350b8 (diff) | |
download | gsoc2013-evolution-7b5415e5005aa1b7142d288af466b58b7e95ac42.tar gsoc2013-evolution-7b5415e5005aa1b7142d288af466b58b7e95ac42.tar.gz gsoc2013-evolution-7b5415e5005aa1b7142d288af466b58b7e95ac42.tar.bz2 gsoc2013-evolution-7b5415e5005aa1b7142d288af466b58b7e95ac42.tar.lz gsoc2013-evolution-7b5415e5005aa1b7142d288af466b58b7e95ac42.tar.xz gsoc2013-evolution-7b5415e5005aa1b7142d288af466b58b7e95ac42.tar.zst gsoc2013-evolution-7b5415e5005aa1b7142d288af466b58b7e95ac42.zip |
convert the formatted date to UTF-8.
2001-10-26 Damon Chaplin <damon@ximian.com>
* gui/e-itip-control.c (write_label_piece): convert the formatted
date to UTF-8.
* cal-util/cal-recur.c (CAL_OBJ_DEBUG): turn off debug functions.
* gui/dialogs/comp-editor-util.c (parse_contact_string): handle UTF8
correctly. Bug #4450. Good enough for 1.0.
* gui/e-week-view-event-item.c (e_week_view_draw_time): set the gc
color before drawing. Should fix bug #11469.
* gui/dialogs/task-editor.c (task_editor_edit_comp): show or hide the
meeting page as appropriate. Note this may be called more than once,
if the task gets updated somewhere else and the user clicks 'Update
the object'. Hopefully fixes bug #12930.
* gui/print.c (print_comp_item): printed more fields and made a little
prettier. Fixes bug #9352.
(print_date_label): used the correct timezones for each date field.
* *.c: removed several debug messages.
svn path=/trunk/; revision=14187
Diffstat (limited to 'calendar/gui/e-itip-control.c')
-rw-r--r-- | calendar/gui/e-itip-control.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/calendar/gui/e-itip-control.c b/calendar/gui/e-itip-control.c index 5170a162be..9b3707f3d7 100644 --- a/calendar/gui/e-itip-control.c +++ b/calendar/gui/e-itip-control.c @@ -438,17 +438,22 @@ write_label_piece (time_t t, char *buffer, int size, const char *stext, const ch { struct tm *tmp_tm; int len; + char time_buf[64], *time_utf8; /* FIXME: Convert to an appropriate timezone. */ tmp_tm = localtime (&t); if (stext != NULL) strcat (buffer, stext); - len = strlen (buffer); e_time_format_date_and_time (tmp_tm, calendar_config_get_24_hour_format (), FALSE, FALSE, - &buffer[len], size - len); + time_buf, sizeof (time_buf)); + + time_utf8 = e_utf8_from_locale_string (time_buf); + strcat (buffer, time_utf8); + g_free (time_utf8); + if (etext != NULL) strcat (buffer, etext); } |