Hello community, here is the log from the commit of package kalarmcal for openSUSE:Factory checked in at 2018-10-15 09:22:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kalarmcal (Old) and /work/SRC/openSUSE:Factory/.kalarmcal.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kalarmcal" Mon Oct 15 09:22:53 2018 rev:39 rq:641457 version:18.08.2 Changes: -------- --- /work/SRC/openSUSE:Factory/kalarmcal/kalarmcal.changes 2018-09-13 23:54:50.074254448 +0200 +++ /work/SRC/openSUSE:Factory/.kalarmcal.new/kalarmcal.changes 2018-10-15 09:22:58.312509735 +0200 @@ -1,0 +2,10 @@ +Thu Oct 11 20:06:47 UTC 2018 - [email protected] + +- Update to 18.08.2 + * New bugfix release + * For more details please see: + * https://www.kde.org/announcements/announce-applications-18.08.2.php +- Changes since 18.08.1: + * Add KADateTime::msecsTo() + +------------------------------------------------------------------- Old: ---- kalarmcal-18.08.1.tar.xz New: ---- kalarmcal-18.08.2.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kalarmcal.spec ++++++ --- /var/tmp/diff_new_pack.22DrM0/_old 2018-10-15 09:22:58.884509200 +0200 +++ /var/tmp/diff_new_pack.22DrM0/_new 2018-10-15 09:22:58.888509196 +0200 @@ -12,14 +12,14 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %bcond_without lang Name: kalarmcal -Version: 18.08.1 +Version: 18.08.2 Release: 0 %define kf5_version 5.26.0 # Latest stable Applications (e.g. 17.08 in KA, but 17.11.80 in KUA) ++++++ kalarmcal-18.08.1.tar.xz -> kalarmcal-18.08.2.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kalarmcal-18.08.1/CMakeLists.txt new/kalarmcal-18.08.2/CMakeLists.txt --- old/kalarmcal-18.08.1/CMakeLists.txt 2018-09-04 02:53:17.000000000 +0200 +++ new/kalarmcal-18.08.2/CMakeLists.txt 2018-10-09 02:29:53.000000000 +0200 @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.0) -set(PIM_VERSION "5.9.1") +set(PIM_VERSION "5.9.2") project(KAlarmCal VERSION ${PIM_VERSION}) @@ -25,10 +25,10 @@ set(KALARM_LIB_VERSION ${PIM_VERSION}) -set(CALENDARCORE_LIB_VERSION "5.9.1") -set(CALENDARUTILS_LIB_VERSION "5.9.1") -set(IDENTITYMANAGER_LIB_VERSION "5.9.1") -set(AKONADI_LIB_VERSION "5.9.1") +set(CALENDARCORE_LIB_VERSION "5.9.2") +set(CALENDARUTILS_LIB_VERSION "5.9.2") +set(IDENTITYMANAGER_LIB_VERSION "5.9.2") +set(AKONADI_LIB_VERSION "5.9.2") ecm_setup_version(PROJECT VARIABLE_PREFIX KALARMCAL VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/kalarmcal_version.h" PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KF5AlarmCalendarConfigVersion.cmake" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kalarmcal-18.08.1/po/zh_CN/libkalarmcal5-serializer.po new/kalarmcal-18.08.2/po/zh_CN/libkalarmcal5-serializer.po --- old/kalarmcal-18.08.1/po/zh_CN/libkalarmcal5-serializer.po 2018-09-04 02:53:17.000000000 +0200 +++ new/kalarmcal-18.08.2/po/zh_CN/libkalarmcal5-serializer.po 2018-10-09 02:29:53.000000000 +0200 @@ -9,8 +9,8 @@ "Project-Id-Version: kdeorg\n" "Report-Msgid-Bugs-To: http://bugs.kde.org\n" "POT-Creation-Date: 2018-05-14 03:45+0200\n" -"PO-Revision-Date: 2018-08-30 13:16\n" -"Last-Translator: guoyunhebrave <[email protected]>\n" +"PO-Revision-Date: 2018-09-28 19:52\n" +"Last-Translator: guoyunhe <[email protected]>\n" "Language-Team: Chinese Simplified\n" "Language: zh_CN\n" "MIME-Version: 1.0\n" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kalarmcal-18.08.1/po/zh_CN/libkalarmcal5.po new/kalarmcal-18.08.2/po/zh_CN/libkalarmcal5.po --- old/kalarmcal-18.08.1/po/zh_CN/libkalarmcal5.po 2018-09-04 02:53:17.000000000 +0200 +++ new/kalarmcal-18.08.2/po/zh_CN/libkalarmcal5.po 2018-10-09 02:29:53.000000000 +0200 @@ -8,8 +8,8 @@ "Project-Id-Version: kdeorg\n" "Report-Msgid-Bugs-To: http://bugs.kde.org\n" "POT-Creation-Date: 2018-05-14 03:45+0200\n" -"PO-Revision-Date: 2018-08-30 13:16\n" -"Last-Translator: guoyunhebrave <[email protected]>\n" +"PO-Revision-Date: 2018-09-28 19:52\n" +"Last-Translator: guoyunhe <[email protected]>\n" "Language-Team: Chinese Simplified\n" "Language: zh_CN\n" "MIME-Version: 1.0\n" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kalarmcal-18.08.1/src/kadatetime.cpp new/kalarmcal-18.08.2/src/kadatetime.cpp --- old/kalarmcal-18.08.1/src/kadatetime.cpp 2018-08-28 13:42:17.000000000 +0200 +++ new/kalarmcal-18.08.2/src/kadatetime.cpp 2018-09-27 22:01:12.000000000 +0200 @@ -1240,6 +1240,20 @@ return result; } +qint64 KADateTime::msecsTo(const KADateTime &t2) const +{ + if (!isValid() || !t2.isValid()) + return 0; + if (d->dateOnly()) { + const QDate dat = t2.d->dateOnly() ? t2.d->date() : t2.toTimeSpec(d->spec()).d->date(); + return d->date().daysTo(dat) * 86400*1000; + } + if (t2.d->dateOnly()) + return toTimeSpec(t2.d->spec()).d->date().daysTo(t2.d->date()) * 86400*1000; + QTimeZone local; + return d->toUtc(local).msecsTo(t2.d->toUtc(local)); +} + qint64 KADateTime::secsTo(const KADateTime &t2) const { if (!isValid() || !t2.isValid()) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kalarmcal-18.08.1/src/kadatetime.h new/kalarmcal-18.08.2/src/kadatetime.h --- old/kalarmcal-18.08.1/src/kadatetime.h 2018-08-28 13:42:17.000000000 +0200 +++ new/kalarmcal-18.08.2/src/kadatetime.h 2018-09-27 22:01:12.000000000 +0200 @@ -922,6 +922,27 @@ KADateTime addYears(int years) const; /** + * Returns the number of milliseconds from this date/time to the @p other date/time. + * + * Before performing the comparison, the two date/times are converted to UTC + * to ensure that the result is correct if one of the two date/times has + * daylight saving time (DST) and the other doesn't. + * + * If one instance is date-only and the other is date-time, the date-time + * value is first converted to the same time specification as the date-only + * value, and the result is the difference in days between the resultant + * date and the date-only date. + * + * If both instances are date-only, the result is the difference in days + * between the two dates, ignoring time zones. + * + * @param other other date/time + * @return number of milliseconds difference + * @see addSecs(), daysTo() + */ + qint64 msecsTo(const KADateTime &other) const; + + /** * Returns the number of seconds from this date/time to the @p other date/time. * * Before performing the comparison, the two date/times are converted to UTC
