mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Improve debug/warning log
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30552 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c018c05806
commit
724f63bde0
1 changed files with 4 additions and 2 deletions
|
@ -1525,7 +1525,7 @@ static NSMapTable *absolutes = 0;
|
|||
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);
|
||||
NSLog(@"It seems that your operating system does not have a valid timezone name configured (it could be that some other software has set a, possibly ambiguous, timezone abbreviation rather than a name) ... please correct that or override by setting the '%@' user default to a timezone name (such as 'Europe/London' or 'America/Chicago'). See '%@' for a the standard timezones.", LOCALDBKEY, _time_zone_path (ZONES_DIR, nil));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2077,6 +2077,7 @@ static NSString *zoneDirs[] = {
|
|||
{
|
||||
static BOOL beenHere = NO;
|
||||
NSString *dir = nil;
|
||||
BOOL isDir;
|
||||
|
||||
if (beenHere == NO && tzdir == nil)
|
||||
{
|
||||
|
@ -2112,7 +2113,8 @@ static NSString *zoneDirs[] = {
|
|||
/* Use the system zone info if possible, otherwise, use our installed
|
||||
info. */
|
||||
if (tzdir && [[NSFileManager defaultManager] fileExistsAtPath:
|
||||
[tzdir stringByAppendingPathComponent: name]] == YES)
|
||||
[tzdir stringByAppendingPathComponent: name] isDirectory: &isDir] == YES
|
||||
&& isDir == NO)
|
||||
{
|
||||
dir = tzdir;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue