aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-util
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@nuclecu.unam.mx>1999-06-02 09:12:20 +0800
committerArturo Espinosa <unammx@src.gnome.org>1999-06-02 09:12:20 +0800
commit30d70369cb47669fde2630ce0159a709df26359d (patch)
tree4d25f601c4a63f85e25b90d53b9b5aee4b9b43ec /calendar/cal-util
parent2d2497b7d70febb6fe436afc5aa99a522cb1d875 (diff)
downloadgsoc2013-evolution-30d70369cb47669fde2630ce0159a709df26359d.tar
gsoc2013-evolution-30d70369cb47669fde2630ce0159a709df26359d.tar.gz
gsoc2013-evolution-30d70369cb47669fde2630ce0159a709df26359d.tar.bz2
gsoc2013-evolution-30d70369cb47669fde2630ce0159a709df26359d.tar.lz
gsoc2013-evolution-30d70369cb47669fde2630ce0159a709df26359d.tar.xz
gsoc2013-evolution-30d70369cb47669fde2630ce0159a709df26359d.tar.zst
gsoc2013-evolution-30d70369cb47669fde2630ce0159a709df26359d.zip
Work around broken software that writes a broken month-of-day as "zero".
1999-06-01 Miguel de Icaza <miguel@nuclecu.unam.mx> * calobj.c (daynumberlist): Work around broken software that writes a broken month-of-day as "zero". Use the dtstart date for this on this event. svn path=/trunk/; revision=963
Diffstat (limited to 'calendar/cal-util')
-rw-r--r--calendar/cal-util/calobj.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/calendar/cal-util/calobj.c b/calendar/cal-util/calobj.c
index 59c34c866a..dbc3bf2f1b 100644
--- a/calendar/cal-util/calobj.c
+++ b/calendar/cal-util/calobj.c
@@ -300,6 +300,14 @@ daynumberlist (iCalObject *o, char **str)
(*str)++;
}
if (!first){
+ /*
+ * Some broken applications set this to zero
+ */
+ if (val == 0){
+ struct tm *day = localtime (&o->dtstart);
+
+ val = tm->tm_mday;
+ }
o->recur->u.month_day = val;
first = 1;
val = 0;