diff options
Diffstat (limited to 'lib/libc/stdtime/strftime.c')
-rw-r--r-- | lib/libc/stdtime/strftime.c | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/lib/libc/stdtime/strftime.c b/lib/libc/stdtime/strftime.c index 838ebdde3e5b..5943e6387174 100644 --- a/lib/libc/stdtime/strftime.c +++ b/lib/libc/stdtime/strftime.c @@ -3,7 +3,7 @@ * All rights reserved. * * Copyright (c) 2011 The FreeBSD Foundation - * All rights reserved. + * * Portions of this software were developed by David Chisnall * under sponsorship from the FreeBSD Foundation. * @@ -20,28 +20,13 @@ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ -#ifndef lint -#ifndef NOID -static const char elsieid[] = "@(#)strftime.3 8.3"; -/* - * Based on the UCB version with the ID appearing below. - * This is ANSIish only when "multibyte character == plain character". - */ -#endif /* !defined NOID */ -#endif /* !defined lint */ - #include "namespace.h" #include "private.h" -#if defined(LIBC_SCCS) && !defined(lint) -static const char sccsid[] = "@(#)strftime.c 5.4 (Berkeley) 3/14/89"; -#endif /* LIBC_SCCS and not lint */ -#include <sys/cdefs.h> -__FBSDID("$FreeBSD$"); - #include "tzfile.h" #include <fcntl.h> #include <sys/stat.h> +#include <stdio.h> #include "un-namespace.h" #include "timelocal.h" @@ -317,7 +302,7 @@ label: time_t mkt; tm = *t; - mkt = mktime(&tm); + mkt = timeoff(&tm, t->tm_gmtoff); if (TYPE_SIGNED(time_t)) (void) sprintf_l(buf, loc, "%ld", (long) mkt); |