* we need to initialize ICU's default timezone, as the date formatting

implementation in BLocale assumes this matches the system's timezone
This little bugger should fix #6277, #6370 and #6396.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38158 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Tappe 2010-08-16 20:24:51 +00:00
parent ee33862568
commit 80d59712ae

View File

@ -572,6 +572,11 @@ RosterData::_SetDefaultTimeZone(const BTimeZone& newZone)
{
fDefaultTimeZone = newZone;
TimeZone* timeZone = TimeZone::createTimeZone(newZone.Code().String());
if (timeZone == NULL)
return B_ERROR;
TimeZone::adoptDefault(timeZone);
return B_OK;
}