mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +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
07a830b86a
commit
88e946fbcb
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
|
* 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue