From fb8a4fb880fe327fa793f7ab3019953ceaad0343 Mon Sep 17 00:00:00 2001 From: Andrew McCallum Date: Fri, 12 Jan 1996 21:09:48 +0000 Subject: [PATCH] ([NSDate -description]): Don't use strftime #ifdef NeXT. (Reported by Gregor Hoffleit .) git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@714 72102866-910b-0410-8b05-ffd578937521 --- Source/NSDate.m | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Source/NSDate.m b/Source/NSDate.m index 00913e5e4..aa9d503b1 100644 --- a/Source/NSDate.m +++ b/Source/NSDate.m @@ -206,7 +206,16 @@ secs = [self timeIntervalSinceReferenceDate]; unix_secs = (time_t)secs - (time_t)UNIX_OFFSET; theTime = localtime(&unix_secs); +/* + Gregor Hoffleit 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]; }