From 5517ab99186cd569083c42074330a526ce6adcde Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Tue, 3 Aug 2010 17:35:49 +0000 Subject: [PATCH] * store numeric timezone offset along with ID of timezone in 'Time settings', as this can then be used in clockconfig git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37879 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/locale/MutableLocaleRoster.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/kits/locale/MutableLocaleRoster.cpp b/src/kits/locale/MutableLocaleRoster.cpp index 1d59e2c233..5a640b05cd 100644 --- a/src/kits/locale/MutableLocaleRoster.cpp +++ b/src/kits/locale/MutableLocaleRoster.cpp @@ -594,7 +594,14 @@ RosterData::_AddDefaultCountryToMessage(BMessage* message) const status_t RosterData::_AddDefaultTimeZoneToMessage(BMessage* message) const { - return message->AddString("timezone", fDefaultTimeZone.Code()); + status_t status = message->AddString("timezone", fDefaultTimeZone.Code()); + + // add the offset, too, since that is used by clockconfig when setting + // up timezone state during boot + if (status == B_OK) + status = message->AddInt32("offset", fDefaultTimeZone.OffsetFromGMT()); + + return status; }