* Minor cleanup.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29875 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2009-04-03 08:05:25 +00:00
parent 563db5d400
commit 7a517c04b0
+5 -3
View File
@@ -1,5 +1,5 @@
/* /*
* Copyright 2004-2007, Axel Dörfler, [email protected]. All rights reserved. * Copyright 2004-2009, Axel Dörfler, [email protected]. All rights reserved.
* Copyright 2003, Jeff Ward, [email protected]. All rights reserved. * Copyright 2003, Jeff Ward, [email protected]. All rights reserved.
* *
* Distributed under the terms of the MIT License. * Distributed under the terms of the MIT License.
@@ -305,9 +305,11 @@ _user_set_tzfilename(const char *filename, size_t length, bool isGMT)
sIsGMT = isGMT; sIsGMT = isGMT;
if (wasGMT != sIsGMT) if (wasGMT != sIsGMT) {
arch_rtc_set_system_time_offset(sRealTimeData, arch_rtc_set_system_time_offset(sRealTimeData,
arch_rtc_get_system_time_offset(sRealTimeData) + (((sIsGMT) ? 1 : -1) * sTimezoneOffset)); arch_rtc_get_system_time_offset(sRealTimeData) + (((sIsGMT) ? 1 : -1)
* sTimezoneOffset));
}
return B_OK; return B_OK;
} }