aboutsummaryrefslogtreecommitdiffstats
path: root/libical/src
diff options
context:
space:
mode:
authorDamon Chaplin <damon@ximian.com>2001-09-01 09:53:47 +0800
committerDamon Chaplin <damon@src.gnome.org>2001-09-01 09:53:47 +0800
commit3ca5273c1d48f9b0856bfffc06df0ed4da84173c (patch)
tree5be3a4e0559eaee5508e4db7368214398ee566ac /libical/src
parent1273682db1433dbd864f74a4cdd40da821129e3f (diff)
downloadgsoc2013-evolution-3ca5273c1d48f9b0856bfffc06df0ed4da84173c.tar
gsoc2013-evolution-3ca5273c1d48f9b0856bfffc06df0ed4da84173c.tar.gz
gsoc2013-evolution-3ca5273c1d48f9b0856bfffc06df0ed4da84173c.tar.bz2
gsoc2013-evolution-3ca5273c1d48f9b0856bfffc06df0ed4da84173c.tar.lz
gsoc2013-evolution-3ca5273c1d48f9b0856bfffc06df0ed4da84173c.tar.xz
gsoc2013-evolution-3ca5273c1d48f9b0856bfffc06df0ed4da84173c.tar.zst
gsoc2013-evolution-3ca5273c1d48f9b0856bfffc06df0ed4da84173c.zip
updated all of the VTIMEZONE files to try to be more compatable with
2001-08-31 Damon Chaplin <damon@ximian.com> * zoneinfo/*: updated all of the VTIMEZONE files to try to be more compatable with Outlook. i.e. We don't use seconds in UTC offsets, we don't use BYMONTHDAY if we can avoid it (there are still a few uses of this we need to fix), and we don't use years < 1600. * src/libical/icalvalue.c (icalvalue_utcoffset_as_ical_string): if seconds is 0 then don't output it. None of the builtin VTIMEZONE data uses the seconds value any more, since it messes up iTIP with Outlook. We may want to make it always round to the nearest minute, to avoid interop problems. svn path=/trunk/; revision=12551
Diffstat (limited to 'libical/src')
-rw-r--r--libical/src/libical/icalvalue.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libical/src/libical/icalvalue.c b/libical/src/libical/icalvalue.c
index 459bebe830..0010c391f6 100644
--- a/libical/src/libical/icalvalue.c
+++ b/libical/src/libical/icalvalue.c
@@ -608,7 +608,12 @@ char* icalvalue_utcoffset_as_ical_string(icalvalue* value)
m = (data - (h*3600))/ 60;
s = (data - (h*3600) - (m*60));
- sprintf(str,"%c%02d%02d%02d",sign,abs(h),abs(m),abs(s));
+ /* FIXME: We may want to always round to the nearest minute, to avoid
+ interop problems with Outlook (2000). It doesn't like seconds here. */
+ if (s == 0)
+ sprintf(str,"%c%02d%02d",sign,abs(h),abs(m));
+ else
+ sprintf(str,"%c%02d%02d%02d",sign,abs(h),abs(m),abs(s));
return str;
}