diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-02-11 15:58:55 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-02-11 20:14:42 +0900 |
commit | 8996740084e6d31d323cfeb1a269f8427ff3f6bf (patch) | |
tree | 992adcaf90951b2f70cb4b86b067c4a5b6835a53 /libkcal/vcalformat.cpp | |
parent | 4767f333ca8a7997b4c4f9ec3f2f4fdb6e59d7ea (diff) | |
download | tdepim-8996740084e6d31d323cfeb1a269f8427ff3f6bf.tar.gz tdepim-8996740084e6d31d323cfeb1a269f8427ff3f6bf.zip |
Fixed FTBFS caused by migration to libical 3. The changes
are compatible with previous versions of libical.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'libkcal/vcalformat.cpp')
-rw-r--r-- | libkcal/vcalformat.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libkcal/vcalformat.cpp b/libkcal/vcalformat.cpp index 7733b27dd..f78ad2a31 100644 --- a/libkcal/vcalformat.cpp +++ b/libkcal/vcalformat.cpp @@ -1341,9 +1341,7 @@ int vcaltime_utc_offset( TQDateTime ictt, TQString tzid ) // struct icaltimetype tt = icaltime_from_timet( ictt.toTime_t(), false ); // return icaltime_utc_offset( tt, tzid.latin1() ); int daylight; - struct icaltimetype tt = icaltime_from_timet( ictt.toTime_t(), false ); - //source says this is DEPRECATED, but it doesn't say what to use instead - //how to handle failure from icaltimezone_get_builtin_timezone_from_tzid()? + struct icaltimetype tt = icaltime_from_timet_with_zone( ictt.toTime_t(), false, NULL); return icaltimezone_get_utc_offset( icaltimezone_get_builtin_timezone( tzid.latin1() ), &tt, &daylight ); |