aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
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
parent6cc1ca709616dafc050dc29e10f26686ac3e4caa (diff)
downloadgsoc2013-evolution-14fda1ed488e7a828f854a3e94214213370fa729.tar
gsoc2013-evolution-14fda1ed488e7a828f854a3e94214213370fa729.tar.gz
gsoc2013-evolution-14fda1ed488e7a828f854a3e94214213370fa729.tar.bz2
gsoc2013-evolution-14fda1ed488e7a828f854a3e94214213370fa729.tar.lz
gsoc2013-evolution-14fda1ed488e7a828f854a3e94214213370fa729.tar.xz
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')
-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]));
}