improve help/diagnostics

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30537 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2010-06-02 09:35:26 +00:00
parent 775dd86b02
commit c7459ea5fe

View file

@ -1372,7 +1372,8 @@ static NSMapTable *absolutes = 0;
/*
* Try to get timezone from user defaults database
*/
localZoneSource = _(@"NSUserDefaults: 'Local Time Zone'");
localZoneSource = [NSString stringWithFormat:
@"NSUserDefaults: '%@'", LOCALDBKEY];
localZoneString = [[NSUserDefaults standardUserDefaults]
stringForKey: LOCALDBKEY];
@ -1509,6 +1510,11 @@ static NSMapTable *absolutes = 0;
{
NSLog(@"Unable to create time zone for name: '%@' (source '%@').",
localZoneString, localZoneSource);
if ([localZoneSource hasPrefix: @"file"]
|| [localZoneSource hasPrefix: @"function"])
{
NSLog(@"It seems that your operating system does not have a valid timzone names configured ... please correct that or override by setting the '%@' user default to a timezone name (such as 'Europe/London' or 'America/Chicago')", LOCALDBKEY);
}
}
}
else