aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--e-util/ChangeLog6
-rw-r--r--e-util/e-time-utils.c7
2 files changed, 11 insertions, 2 deletions
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 <damon@ximian.com>
+
+ * 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 <ettore@ximian.com>
* 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]));
}