* 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
This commit is contained in:
Oliver Tappe 2010-08-03 17:35:49 +00:00
parent bbd5dd572d
commit 5517ab9918

View File

@ -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;
}