summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2012-04-05 11:31:33 (GMT)
committerChristian Mollekopf <chrigi_1@fastmail.fm>2012-04-05 11:31:33 (GMT)
commit998f72424dc7c50e6697cf9ccd5d0536a6f684fd (patch)
tree05acc49baa1b016b895286f480e9d478770db89c
parent625376142619ea7a4ffc805b73b8212ef46e25de (diff)
downloadlibkolabxml-998f72424dc7c50e6697cf9ccd5d0536a6f684fd.tar.gz
Consistently default to local time.
BUG=683
-rw-r--r--src/kolabcontainers.h2
-rw-r--r--tests/bindingstest.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/kolabcontainers.h b/src/kolabcontainers.h
index 47dc5fc..adf6d90 100644
--- a/src/kolabcontainers.h
+++ b/src/kolabcontainers.h
@@ -26,7 +26,7 @@ namespace Kolab {
class cDateTime {
public:
cDateTime();
- cDateTime(int year, int month, int day, int hour, int minute, int second, bool isUtc=true);
+ cDateTime(int year, int month, int day, int hour, int minute, int second, bool isUtc=false);
cDateTime(const std::string &timezone, int year, int month, int day, int hour, int minute, int second);
cDateTime(int year, int month, int day);
~cDateTime();
diff --git a/tests/bindingstest.cpp b/tests/bindingstest.cpp
index f530c2e..ea0d6e4 100644
--- a/tests/bindingstest.cpp
+++ b/tests/bindingstest.cpp
@@ -27,7 +27,7 @@ void BindingsTest::noteCompletness()
{
Kolab::Note note;
note.setUid("UID");
- note.setCreated(Kolab::cDateTime(2006,1,6,12,0,0)); //UTC
+ note.setCreated(Kolab::cDateTime(2006,1,6,12,0,0,true)); //UTC
note.setClassification(Kolab::ClassConfidential);
note.addCategory("Category");
note.setSummary("summary");
@@ -52,7 +52,7 @@ template <typename T>
void setIncidence(T &ev)
{
ev.setUid("UID");
- ev.setCreated(Kolab::cDateTime(2006,1,6,12,0,0)); //UTC
+ ev.setCreated(Kolab::cDateTime(2006,1,6,12,0,0,true)); //UTC
ev.setSequence(1);
ev.setClassification(Kolab::ClassConfidential);
ev.addCategory("Category");
@@ -257,7 +257,7 @@ void BindingsTest::journalCompletness()
ev.setUid("UID");
- ev.setCreated(Kolab::cDateTime(2006,1,6,12,0,0)); //UTC
+ ev.setCreated(Kolab::cDateTime(2006,1,6,12,0,0,true)); //UTC
ev.setSequence(1);
ev.setClassification(Kolab::ClassConfidential);
ev.addCategory("Category");