Fix bug #3117, "full-day event shown from 01:00 to 01:00 next day"
[claws.git] / src / plugins / vcalendar / libical / libical / icaltime.c
index 85596671a22076cd95dbf38f2bd411c400a24233..b1a3b98a6fc623106ea53b27196b786c8c1f1604 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);