Fix bug #3117, "full-day event shown from 01:00 to 01:00 next day"
authorColin Leroy <colin@colino.net>
Mon, 21 Apr 2014 09:57:08 +0000 (11:57 +0200)
committerColin Leroy <colin@colino.net>
Mon, 21 Apr 2014 09:57:08 +0000 (11:57 +0200)
src/plugins/vcalendar/libical/libical/icaltime.c

index 8559667..b1a3b98 100644 (file)
@@ -177,7 +177,7 @@ time_t icaltime_as_timet(struct icaltimetype tt)
     stm.tm_year = tt.year-1900;
     stm.tm_isdst = -1;
 
-    if(tt.is_utc == 1 || tt.is_date == 1){
+    if(tt.is_utc == 1 && tt.is_date == 0){
        struct set_tz_save old_tz = set_tz("UTC");
        t = mktime(&stm);
        unset_tz(old_tz);