aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-time-utils.c
diff options
context:
space:
mode:
authorDamon Chaplin <damon@ximian.com>2001-10-30 21:01:36 +0800
committerDamon Chaplin <damon@src.gnome.org>2001-10-30 21:01:36 +0800
commit14fda1ed488e7a828f854a3e94214213370fa729 (patch)
tree4efe43a63005072b922357e0d816fa02cbd03c47 /e-util/e-time-utils.c
parent6cc1ca709616dafc050dc29e10f26686ac3e4caa (diff)
downloadgsoc2013-evolution-14fda1ed488e7a828f854a3e94214213370fa729.tar.gz
gsoc2013-evolution-14fda1ed488e7a828f854a3e94214213370fa729.tar.zst
gsoc2013-evolution-14fda1ed488e7a828f854a3e94214213370fa729.zip
added a 2nd format, with the weekday and the date. We need this so we can
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. svn path=/trunk/; revision=14457
Diffstat (limited to 'e-util/e-time-utils.c')
-rw-r--r--e-util/e-time-utils.c7
1 files changed, 5 insertions, 2 deletions
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]));
}