([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:
Andrew McCallum 1996-01-12 21:09:48 +00:00
parent b878535b19
commit fb8a4fb880

View file

@ -206,7 +206,16 @@
secs = [self timeIntervalSinceReferenceDate]; secs = [self timeIntervalSinceReferenceDate];
unix_secs = (time_t)secs - (time_t)UNIX_OFFSET; unix_secs = (time_t)secs - (time_t)UNIX_OFFSET;
theTime = localtime(&unix_secs); 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); strftime(buf, 64, "%Y-%m-%d %H:%M:%S", theTime);
#endif
return [NSString stringWithCString: buf]; return [NSString stringWithCString: buf];
} }