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 /libkpimexchange | |
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 'libkpimexchange')
-rw-r--r-- | libkpimexchange/core/utils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libkpimexchange/core/utils.cpp b/libkpimexchange/core/utils.cpp index 7e1cbadfe..4f0568c8c 100644 --- a/libkpimexchange/core/utils.cpp +++ b/libkpimexchange/core/utils.cpp @@ -56,7 +56,7 @@ TQDateTime utcAsZone( const TQDateTime& utc, const TQString& timeZoneId ) TQDateTime epoch; epoch.setTime_t( 0 ); time_t v = epoch.secsTo( utc ); - struct icaltimetype tt = icaltime_from_timet( v, 0 ); // 0: is_date=false + struct icaltimetype tt = icaltime_from_timet_with_zone( v, 0, NULL ); int offset = icaltimezone_get_utc_offset( icaltimezone_get_builtin_timezone( timeZoneId.latin1() ), &tt, &daylight ); @@ -72,7 +72,7 @@ TQDateTime zoneAsUtc( const TQDateTime& zone, const TQString& timeZoneId ) TQDateTime epoch; epoch.setTime_t( 0 ); time_t v = epoch.secsTo( zone ); - struct icaltimetype tt = icaltime_from_timet( v, 0 ); // 0: is_date=false + struct icaltimetype tt = icaltime_from_timet_with_zone( v, 0, NULL ); int offset = icaltimezone_get_utc_offset( icaltimezone_get_builtin_timezone( timeZoneId.latin1() ), &tt, &daylight ); |