From 0aa23047c6dbb8f9e12c99002db3ac9492ea45ba Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Tue, 3 Aug 2010 17:37:54 +0000 Subject: [PATCH] * the Time preflet will now pass the activated timezone offset to the kernel git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37880 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/preferences/time/ZoneView.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/preferences/time/ZoneView.cpp b/src/preferences/time/ZoneView.cpp index f5319da5b9..e629d73657 100644 --- a/src/preferences/time/ZoneView.cpp +++ b/src/preferences/time/ZoneView.cpp @@ -353,10 +353,11 @@ TimeZoneView::_SetSystemTimeZone() return; fCurrentZoneItem = (TimeZoneListItem*)(fZoneList->ItemAt(selection)); + const BTimeZone& timeZone = fCurrentZoneItem->TimeZone(); - mutable_locale_roster->SetDefaultTimeZone(fCurrentZoneItem->TimeZone()); + mutable_locale_roster->SetDefaultTimeZone(timeZone); - set_timezone(fCurrentZoneItem->Code()); + _kern_set_timezone(timeZone.OffsetFromGMT(), false); fSetZone->SetEnabled(false); fLastUpdateMinute = -1;