Projects
Kolab:Winterfell
kolab-utils
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 22
View file
kolab-utils.spec
Changed
@@ -10,7 +10,7 @@ %endif Name: kolab-utils -Version: 3.1.1 +Version: 3.1.2 Release: 1%{?dist} Summary: Kolab Utilities @@ -90,8 +90,8 @@ %attr(0750,root,%{httpd_group}) %dir %{_sharedstatedir}/kolab-freebusy %changelog -* Fri Apr 15 2016 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 3.1.1-1 -- Release version 3.1.1 +* Fri Apr 15 2016 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 3.1.2-1 +- Release version 3.1.2 * Tue Oct 29 2013 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 3.0.5-3 - Do not require httpd at all
View file
debian.changelog
Changed
@@ -1,6 +1,6 @@ -kolab-utils (3.1.1-0~kolab1) unstable; urgency=low +kolab-utils (3.1.2-0~kolab1) unstable; urgency=low - * Release of version 3.1.1 + * Release of version 3.1.2 -- Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Fri, 15 Apr 2016 23:00:55 +0100
View file
kolab-utils-3.1.1.tar.gz/CMakeLists.txt -> kolab-utils-3.1.2.tar.gz/CMakeLists.txt
Changed
@@ -18,7 +18,7 @@ set(Kolabutils_VERSION_MAJOR 3) set(Kolabutils_VERSION_MINOR 1) # Enable the full x.y.z version only for release versions -set(Kolabutils_VERSION_PATCH 1) +set(Kolabutils_VERSION_PATCH 2) set(Kolabutils_VERSION ${Kolabutils_VERSION_MAJOR}.${Kolabutils_VERSION_MINOR}.${Kolabutils_VERSION_PATCH} ) # set(Kolabutils_VERSION ${Kolabutils_VERSION_MAJOR}.${Kolabutils_VERSION_MINOR} ) set(Kolabutils_VERSION_STRING ${CMAKE_PROJECT_NAME}-${Kolabutils_VERSION})
View file
kolab-utils-3.1.1.tar.gz/upgradetool/upgradetool.cpp -> kolab-utils-3.1.2.tar.gz/upgradetool/upgradetool.cpp
Changed
@@ -25,6 +25,7 @@ #include "upgradeutilities.h" #include "imapupgradejob.h" #include "kolabutils-version.h" +#include <ksystemtimezone.h> /** * Usage: @@ -57,6 +58,8 @@ options.add("a").add("auth <mode>", ki18n("Authentication mode to be used (PLAIN, LOGIN, CRAMMD5, DIGESTMD5, NTLM, GSSAPI, ANONYMOUS, CLEARTEXT)"), "PLAIN"); options.add("fix-utc-incidences", ki18n("Converts all incidences from UTC to floating time.")); // options.add("f").add + options.add("fix-utc-incidences-offset <offset>", ki18n("Uses a UTC offset to convert the times. If not provided the local timezone get's used instead. The offset is in seconds."), "0"); + options.add("fix-utc-incidences-timezone <timezone>", ki18n("Uses the specified timezone to convert the times. If not provided the local timezone get's used instead. Timezones are read from zone.tab")); options.add("+[server/file]", ki18n("IMAP Server/File")); KCmdLineArgs::addCmdLineOptions( options ); QCoreApplication app(argc, argv); @@ -80,9 +83,16 @@ } } - const bool fixUtcIncidences = args->isSet("fix-utc-incidences"); + const bool fixUtcIncidencesWithOffset = args->isSet("fix-utc-incidences-offset"); + const bool fixUtcIncidencesWithTimezone = args->isSet("fix-utc-incidences-timezone"); + const bool fixUtcIncidences = args->isSet("fix-utc-incidences") || fixUtcIncidencesWithOffset || fixUtcIncidencesWithTimezone; Kolab::Upgrade::UpgradeOptions upgradeOptions; upgradeOptions.fixUtcIncidences = fixUtcIncidences; + upgradeOptions.fixUtcIncidencesWithOffset = fixUtcIncidencesWithOffset; + upgradeOptions.fixUtcIncidencesOffset = args->getOption("fix-utc-incidences-offset").toInt(); + if (fixUtcIncidencesWithTimezone) { + upgradeOptions.fixUtcIncidencesTimezone = KSystemTimeZones::readZone(args->getOption("fix-utc-incidences-timezone")); + } upgradeOptions.overrideObjectType = overrideType;
View file
kolab-utils-3.1.1.tar.gz/upgradetool/upgradeutilities.cpp -> kolab-utils-3.1.2.tar.gz/upgradetool/upgradeutilities.cpp
Changed
@@ -24,8 +24,9 @@ #include <kolabevent.h> #include <kolabformat.h> #include <errorhandler.h> -#include <KCalCore/Event> -#include <KDateTime> +#include <kcalcore/event.h> +#include <kdatetime.h> +#include <ksystemtimezone.h> namespace Kolab { namespace Upgrade { @@ -34,7 +35,13 @@ { if (upgradeOptions.fixUtcIncidences) { if (incidence->dtStart().isUtc()) { - incidence->shiftTimes(KDateTime::Spec::LocalZone(), KDateTime::Spec::ClockTime()); + if (upgradeOptions.fixUtcIncidencesTimezone.isValid()) { + incidence->shiftTimes(upgradeOptions.fixUtcIncidencesTimezone, KDateTime::Spec::ClockTime()); + } else if (upgradeOptions.fixUtcIncidencesWithOffset) { + incidence->shiftTimes(KDateTime::Spec::OffsetFromUTC(upgradeOptions.fixUtcIncidencesOffset), KDateTime::Spec::ClockTime()); + } else { + incidence->shiftTimes(KDateTime::Spec::LocalZone(), KDateTime::Spec::ClockTime()); + } } } }
View file
kolab-utils-3.1.1.tar.gz/upgradetool/upgradeutilities.h -> kolab-utils-3.1.2.tar.gz/upgradetool/upgradeutilities.h
Changed
@@ -20,6 +20,7 @@ #include <QString> #include <kolabobject.h> #include <kmime/kmime_message.h> +#include <ktimezone.h> namespace Kolab { namespace Upgrade { @@ -31,13 +32,18 @@ struct UpgradeOptions { UpgradeOptions() :overrideObjectType(Kolab::InvalidObject), - fixUtcIncidences(false) + fixUtcIncidences(false), + fixUtcIncidencesWithOffset(false), + fixUtcIncidencesOffset(0) { } Kolab::ObjectType overrideObjectType; bool fixUtcIncidences; + bool fixUtcIncidencesWithOffset; + int fixUtcIncidencesOffset; + KTimeZone fixUtcIncidencesTimezone; }; /**
View file
kolab-utils.dsc
Changed
@@ -2,7 +2,7 @@ Source: kolab-utils Binary: kolab-utils Architecture: any -Version: 3.1.1-0~kolab1 +Version: 3.1.2-0~kolab1 Maintainer: Paul Klos <kolab@klos2day.nl> Homepage: http://git.kolab.org/kolab-utils Standards-Version: 3.9.3 @@ -21,5 +21,5 @@ Package-List: kolab-utils deb libs optional Files: - 00000000000000000000000000000000 0 kolab-utils-3.1.1.tar.gz + 00000000000000000000000000000000 0 kolab-utils-3.1.2.tar.gz 00000000000000000000000000000000 0 debian.tar.gz
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.