aboutsummaryrefslogtreecommitdiffstats
path: root/libical/scripts
diff options
context:
space:
mode:
authorDamon Chaplin <damon@ximian.com>2001-10-23 07:40:29 +0800
committerDamon Chaplin <damon@src.gnome.org>2001-10-23 07:40:29 +0800
commit1da29bab5d909484d332cf2777da92def62023a6 (patch)
tree9aa683dc3cf6cbbf712ab76fe46a633d1f581e75 /libical/scripts
parent4807a4d7e75993aefc6860d2747403a7019c49e7 (diff)
downloadgsoc2013-evolution-1da29bab5d909484d332cf2777da92def62023a6.tar
gsoc2013-evolution-1da29bab5d909484d332cf2777da92def62023a6.tar.gz
gsoc2013-evolution-1da29bab5d909484d332cf2777da92def62023a6.tar.bz2
gsoc2013-evolution-1da29bab5d909484d332cf2777da92def62023a6.tar.lz
gsoc2013-evolution-1da29bab5d909484d332cf2777da92def62023a6.tar.xz
gsoc2013-evolution-1da29bab5d909484d332cf2777da92def62023a6.tar.zst
gsoc2013-evolution-1da29bab5d909484d332cf2777da92def62023a6.zip
updated all files again, placing current RDATEs first, so Outlook uses
2001-10-22 Damon Chaplin <damon@ximian.com> * zoneinfo/*: updated all files again, placing current RDATEs first, so Outlook uses those. Also fixed a few bugs in vzic which resulted in a few changes. * zoneinfo/Makefile.am (DIRS): added America/North_Dakota. 2001-10-22 Damon Chaplin <damon@ximian.com> * src/libical/icaltimezone.c (icaltimezone_get_utc_offset): (icaltimezone_get_utc_offset_of_utc_time): if we go off the start of the changes array, return the TZOFFSETFROM of the first change. Also changed the maximum year to 2037. * src/libical/icaltime.c (icaltime_day_of_week): (icaltime_start_doy_of_week): (icaltime_week_number): init tm_hour to 12. Sometimes mktime() adjusts the time, if that local time doesn't actually exist, leading to the wrong day being returned. It is unlikely to adjust by 12 hours. (icaltime_as_timet_with_zone): (icaltime_from_timet_with_zone): change it back so it does convert DATE values to/from the timezone. time_t values don't really go well with DATE values, so be very careful when using them. We now assume that the time_t points to the start of the day in the given timezone. (We used to assume it pointed to the start of the day in UTC, but that meant it was actually incorrect wrt the displayed calendar.) * src/libical/icalrecur.c (expand_year_days): for FREQ=YEARLY with no modifiers, we add one day, using the month and day from DTSTART. (next_year): make sure we never go past 2037. * scripts/mkderivedproperties.pl: Updated to allow DTSTART, DTEND, DUE and RECURRENCE-ID to be set with DATE values. I think it now handles all properties which can take DATE values, except RDATE which uses DATE-TIME-PERIOD. svn path=/trunk/; revision=13912
Diffstat (limited to 'libical/scripts')
-rwxr-xr-xlibical/scripts/mkderivedproperties.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/libical/scripts/mkderivedproperties.pl b/libical/scripts/mkderivedproperties.pl
index 965817eb30..8bd808e7f5 100755
--- a/libical/scripts/mkderivedproperties.pl
+++ b/libical/scripts/mkderivedproperties.pl
@@ -181,8 +181,9 @@ icalproperty* icalproperty_vanew_${lc}($type v, ...){
}
EOM
- # Allow EXDATEs to take DATE values easily.
- if ($lc eq "exdate") {
+ # Allow DTSTART, DTEND, DUE, EXDATE and RECURRENCE-ID to take DATE values.
+ if ($lc eq "dtstart" || $lc eq "dtend" || $lc eq "due" || $lc eq "exdate"
+ || $lc eq "recurrenceid") {
print<<EOM;
void icalproperty_set_${lc}(icalproperty* prop, $type v){
icalvalue *value;