mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
775dd86b02
commit
c7459ea5fe
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue