Projects
Kolab:Winterfell
libkolabxml
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 10
View file
libkolabxml.spec
Changed
@@ -62,7 +62,7 @@ Name: libkolabxml %endif Version: 1.2 -Release: 0.20151230.git%{?dist} +Release: 0.20160330.git%{?dist} Summary: Kolab XML format collection parser library Group: System Environment/Libraries
View file
debian.changelog
Changed
@@ -1,4 +1,4 @@ -libkolabxml (1.2~dev20151230-0~kolab2) unstable; urgency=low +libkolabxml (1.2~dev20160330-0~kolab1) unstable; urgency=low * Get the Debian packaging up to par with the new upstream
View file
libkolabxml-1.2.tar.gz/src/objectvalidation.cpp
Changed
@@ -88,6 +88,9 @@ void validate(const Event &event) { + ASSERTVALID(event.created()); + ASSERT(event.created().isUTC()); + ASSERT(!event.created().isDateOnly()); ASSERTEXISTING(event.start()); ASSERTVALID(event.start()); ASSERTVALID(event.end()); @@ -98,6 +101,9 @@ void validate(const Todo& todo) { + ASSERTVALID(todo.created()); + ASSERT(todo.created().isUTC()); + ASSERT(!todo.created().isDateOnly()); ASSERTVALID(todo.start()); ASSERTVALID(todo.due()); if (todo.start().isValid() && todo.due().isValid()) { @@ -107,6 +113,9 @@ void validate(const Journal& journal) { + ASSERTVALID(journal.created()); + ASSERT(journal.created().isUTC()); + ASSERT(!journal.created().isDateOnly()); ASSERTVALID(journal.start()); }
View file
libkolabxml-1.2.tar.gz/src/xcalconversions.h
Changed
@@ -1873,7 +1873,7 @@ } typename KolabType::properties_type::created_type created; - if (incidence.created().isValid()) { + if (incidence.created().isValid() && !incidence.created().isDateOnly()) { created.date_time(fromDateTime(incidence.created())); } else { created.date_time(fromDateTime(timestamp()));
View file
libkolabxml-1.2.tar.gz/tests/bindingstest.cpp
Changed
@@ -415,6 +415,7 @@ void BindingsTest::eventDuration() { Kolab::Event ev; + ev.setCreated(Kolab::cDateTime(2006,1,6,12,0,0,true)); //UTC ev.setStart(Kolab::cDateTime("Europe/Zurich", 2006,1,8,12,0,0)); ev.setDuration(Kolab::Duration(11,22,33,44, true)); @@ -431,6 +432,7 @@ { Kolab::Event ev; ev.setUid("uid1"); + ev.setCreated(Kolab::cDateTime(2006,1,6,12,0,0,true)); //UTC ev.setStart(Kolab::cDateTime("Europe/Zurich", 2006,1,8,12,0,0)); std::vector<Kolab::Event> exceptions; Kolab::Event ex1; @@ -481,6 +483,7 @@ void BindingsTest::dueDateDateOnly() { Kolab::Todo ev; + ev.setCreated(Kolab::cDateTime(2006,1,6,12,0,0,true)); //UTC ev.setDue(Kolab::cDateTime(2006,1,8)); std::string result = Kolab::writeTodo(ev); QVERIFY(Kolab::error() == Kolab::NoError);
View file
libkolabxml-1.2.tar.gz/tests/validationtest.cpp
Changed
@@ -34,6 +34,7 @@ void ValidationTest::testNoErrorOnValidEvent() { Event event; + event.setCreated(Kolab::cDateTime(2006,1,6,12,0,0,true)); //UTC event.setStart(cDateTime(2013,1,1,1,1,1)); writeEvent(event); QCOMPARE(Kolab::error(), Kolab::NoError); @@ -43,18 +44,21 @@ { { Todo todo; + todo.setCreated(Kolab::cDateTime(2006,1,6,12,0,0,true)); //UTC todo.setStart(cDateTime("Europe/Zurich", 2013,1,1,1,1,1)); writeTodo(todo); QCOMPARE(Kolab::error(), Kolab::NoError); } { Todo todo; + todo.setCreated(Kolab::cDateTime(2006,1,6,12,0,0,true)); //UTC todo.setDue(cDateTime("Europe/Zurich", 2013,1,1,1,1,1)); writeTodo(todo); QCOMPARE(Kolab::error(), Kolab::NoError); } { Todo todo; + todo.setCreated(Kolab::cDateTime(2006,1,6,12,0,0,true)); //UTC todo.setStart(cDateTime("Europe/Zurich", 2013,1,1,1,1,1)); todo.setDue(cDateTime("Europe/Zurich", 2013,1,1,1,1,1)); writeTodo(todo); @@ -65,6 +69,7 @@ void ValidationTest::testOlsonTimezone() { Event event; + event.setCreated(Kolab::cDateTime(2006,1,6,12,0,0,true)); //UTC event.setStart(cDateTime("Europe/Zurich",2013,1,1,1,1,1)); writeEvent(event); QCOMPARE(Kolab::error(), Kolab::NoError); @@ -73,12 +78,14 @@ void ValidationTest::testDifferentTimezones() { Event event; + event.setCreated(Kolab::cDateTime(2006,1,6,12,0,0,true)); //UTC event.setStart(cDateTime("Europe/Zurich",2013,1,1,1,1,1)); event.setEnd(cDateTime("Europe/London",2013,1,1,1,1,1)); writeEvent(event); QCOMPARE(Kolab::error(), Kolab::NoError); Todo todo; + todo.setCreated(Kolab::cDateTime(2006,1,6,12,0,0,true)); //UTC todo.setStart(cDateTime("Europe/Zurich",2013,1,1,1,1,1)); todo.setDue(cDateTime("Europe/London",2013,1,1,1,1,1)); writeTodo(todo); @@ -88,6 +95,7 @@ void ValidationTest::testUTCwithTimezone() { Event event; + event.setCreated(Kolab::cDateTime(2006,1,6,12,0,0,true)); //UTC cDateTime dt("Europe/Zurich",2013,1,1,1,1,1); dt.setUTC(true); event.setStart(dt); @@ -98,6 +106,7 @@ void ValidationTest::testTimezoneZ() { Event event; + event.setCreated(Kolab::cDateTime(2006,1,6,12,0,0,true)); //UTC event.setStart(cDateTime("Z",2013,1,1,1,1,1)); writeEvent(event); QCOMPARE(Kolab::error(), Kolab::Error); @@ -106,6 +115,7 @@ void ValidationTest::testWindowsTimezone() { Event event; + event.setCreated(Kolab::cDateTime(2006,1,6,12,0,0,true)); //UTC event.setStart(cDateTime("Central European Standard Time",2013,1,1,1,1,1)); writeEvent(event); QCOMPARE(Kolab::error(), Kolab::Error);
View file
libkolabxml.dsc
Changed
@@ -2,7 +2,7 @@ Source: libkolabxml Binary: libkolabxml1v5, php-kolabformat, python-kolabformat, libkolabxml-dev Architecture: any -Version: 1.2~dev20151230-0~kolab2 +Version: 1.2~dev20160330-0~kolab1 Maintainer: Debian Kolab Maintainers <pkg-kolab-devel@lists.alioth.debian.org> Uploaders: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>, Paul Klos <kolab@klos2day.nl> Homepage: http://git.kolab.org/libkolabxml
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
.