source: npl/overig/libical/libical-event-outside-timezone-def.diff @ e856512

Last change on this file since e856512 was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 740 bytes
  • src/libical/icaltimezone.c

    diff -Nurb libical-0.44.orig/src/libical/icaltimezone.c libical-0.44/src/libical/icaltimezone.c
    old new  
    883883        change_num += step;
    884884
    885885        /* If we go past the start of the changes array, then we have no data
    886            for this time so we return a UTC offset of 0. */
    887         if (change_num < 0)
    888             return 0;
     886           for this time so we return the prev UTC offset. */
     887        if (change_num < 0) {
     888            if (is_daylight)
     889                *is_daylight = ! tmp_change.is_daylight;
     890            return tmp_change.prev_utc_offset;
     891        }
    889892
    890893        if ((unsigned int)change_num >= zone->changes->num_elements)
    891894            break;
Note: See TracBrowser for help on using the repository browser.