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:
rfm 2010-06-02 09:35:26 +00:00
parent 07a830b86a
commit 88e946fbcb

View file

@ -1372,7 +1372,8 @@ static NSMapTable *absolutes = 0;
/* /*
* Try to get timezone from user defaults database * Try to get timezone from user defaults database
*/ */
localZoneSource = _(@"NSUserDefaults: 'Local Time Zone'"); localZoneSource = [NSString stringWithFormat:
@"NSUserDefaults: '%@'", LOCALDBKEY];
localZoneString = [[NSUserDefaults standardUserDefaults] localZoneString = [[NSUserDefaults standardUserDefaults]
stringForKey: LOCALDBKEY]; stringForKey: LOCALDBKEY];
@ -1509,6 +1510,11 @@ static NSMapTable *absolutes = 0;
{ {
NSLog(@"Unable to create time zone for name: '%@' (source '%@').", NSLog(@"Unable to create time zone for name: '%@' (source '%@').",
localZoneString, localZoneSource); 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 else