mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-25 01:31:08 +00:00
([NSDate -description]): Don't use strftime #ifdef NeXT. (Reported by
Gregor Hoffleit <flight@mathi.uni-heidelberg.DE>.) git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@714 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b878535b19
commit
fb8a4fb880
1 changed files with 9 additions and 0 deletions
|
@ -206,7 +206,16 @@
|
|||
secs = [self timeIntervalSinceReferenceDate];
|
||||
unix_secs = (time_t)secs - (time_t)UNIX_OFFSET;
|
||||
theTime = localtime(&unix_secs);
|
||||
/*
|
||||
Gregor Hoffleit <flight@mathi.uni-heidelberg.DE> reports problems
|
||||
with strftime on i386-next-nextstep3.
|
||||
Date: Fri, 12 Jan 96 16:00:42 +0100
|
||||
*/
|
||||
#ifdef NeXT
|
||||
buf[0] = '\0';
|
||||
#else
|
||||
strftime(buf, 64, "%Y-%m-%d %H:%M:%S", theTime);
|
||||
#endif
|
||||
return [NSString stringWithCString: buf];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue