* Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29875 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -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.
|
||||
*
|
||||
* 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;
|
||||
|
||||
if (wasGMT != sIsGMT)
|
||||
arch_rtc_set_system_time_offset(sRealTimeData,
|
||||
arch_rtc_get_system_time_offset(sRealTimeData) + (((sIsGMT) ? 1 : -1) * sTimezoneOffset));
|
||||
if (wasGMT != sIsGMT) {
|
||||
arch_rtc_set_system_time_offset(sRealTimeData,
|
||||
arch_rtc_get_system_time_offset(sRealTimeData) + (((sIsGMT) ? 1 : -1)
|
||||
* sTimezoneOffset));
|
||||
}
|
||||
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user