perl-5.22
Last change
on this file since 94ad01e 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
|
Rev | Line | |
---|
[c5c522c] | 1 | diff -Nurb libical-0.44.orig/src/libical/icaltimezone.c libical-0.44/src/libical/icaltimezone.c |
---|
| 2 | --- libical-0.44.orig/src/libical/icaltimezone.c 2013-01-31 10:26:29.000000000 +0100 |
---|
| 3 | +++ libical-0.44/src/libical/icaltimezone.c 2013-01-31 10:25:22.000000000 +0100 |
---|
| 4 | @@ -883,9 +883,12 @@ |
---|
| 5 | change_num += step; |
---|
| 6 | |
---|
| 7 | /* If we go past the start of the changes array, then we have no data |
---|
| 8 | - for this time so we return a UTC offset of 0. */ |
---|
| 9 | - if (change_num < 0) |
---|
| 10 | - return 0; |
---|
| 11 | + for this time so we return the prev UTC offset. */ |
---|
| 12 | + if (change_num < 0) { |
---|
| 13 | + if (is_daylight) |
---|
| 14 | + *is_daylight = ! tmp_change.is_daylight; |
---|
| 15 | + return tmp_change.prev_utc_offset; |
---|
| 16 | + } |
---|
| 17 | |
---|
| 18 | if ((unsigned int)change_num >= zone->changes->num_elements) |
---|
| 19 | break; |
---|
Note: See
TracBrowser
for help on using the repository browser.