From 14fda1ed488e7a828f854a3e94214213370fa729 Mon Sep 17 00:00:00 2001 From: Damon Chaplin Date: Tue, 30 Oct 2001 13:01:36 +0000 Subject: added a 2nd format, with the weekday and the date. We need this so we can 2001-10-30 Damon Chaplin * e-time-utils.c (e_time_parse_date): added a 2nd format, with the weekday and the date. We need this so we can try to parse DATE values in the ECalendarTable. svn path=/trunk/; revision=14457 --- e-util/ChangeLog | 6 ++++++ e-util/e-time-utils.c | 7 +++++-- 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'e-util') diff --git a/e-util/ChangeLog b/e-util/ChangeLog index 02dd27aa01..9e4719b813 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -1,3 +1,9 @@ +2001-10-30 Damon Chaplin + + * e-time-utils.c (e_time_parse_date): added a 2nd format, with the + weekday and the date. We need this so we can try to parse DATE values + in the ECalendarTable. + 2001-10-29 Ettore Perazzoli * e-dialog-utils.c (e_set_dialog_parent): Remove a g_warning. diff --git a/e-util/e-time-utils.c b/e-util/e-time-utils.c index 64392de6ca..c07c280447 100644 --- a/e-util/e-time-utils.c +++ b/e-util/e-time-utils.c @@ -267,13 +267,16 @@ e_time_parse_date_and_time (const char *value, ETimeParseStatus e_time_parse_date (const char *value, struct tm *result) { - const char *format[1]; + const char *format[2]; g_return_val_if_fail (value != NULL, E_TIME_PARSE_INVALID); g_return_val_if_fail (result != NULL, E_TIME_PARSE_INVALID); + /* strptime format of a weekday and a date. */ + format[0] = _("%a %m/%d/%Y"); + /* This is the preferred date format for the locale. */ - format[0] = _("%m/%d/%Y"); + format[1] = _("%m/%d/%Y"); return parse_with_strptime (value, result, format, sizeof (format) / sizeof (format[0])); } -- cgit