summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRALOVICH, Kristóf <tade60@freemail.hu>2013-07-09 16:05:12 +0200
committerRALOVICH, Kristóf <tade60@freemail.hu>2013-07-09 16:05:12 +0200
commitde66da62c4699762c2b1f8d3edfcd1a45c13238a (patch)
tree92501958ab24d20aaa25a9f42d264504ee790ebc /src
parent553f2b14a17ec9b25c662cbaa3624b604ce91ad6 (diff)
DeviceSettings: bugfix: don't count daylight saving here
Otherwise the tests will fail.
Diffstat (limited to 'src')
-rw-r--r--src/DeviceSettings.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/DeviceSettings.cpp b/src/DeviceSettings.cpp
index 75880d5..1b0139d 100644
--- a/src/DeviceSettings.cpp
+++ b/src/DeviceSettings.cpp
@@ -36,6 +36,7 @@ DeviceSettings::loadDefaultValues()
struct tm y2k; // 2000-01-01T00:00:00Z 946684800
y2k.tm_hour = 0; y2k.tm_min = 0; y2k.tm_sec = 0;
y2k.tm_year = 100; y2k.tm_mon = 0; y2k.tm_mday = 1;
+ y2k.tm_isdst = -1;
LastUserProfileTime = ::mktime(&y2k) - timezone;
LastTransferredTime = ::mktime(&y2k) - timezone;
}