From: Sergey Poznyakoff Date: Sun, 29 Feb 2004 00:05:31 +0000 (+0000) Subject: (tartime): Print UTC if --utc was given. X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=cedd9d6e81e0d0451429c9b14b2298e419f2b052;p=chaz%2Ftar (tartime): Print UTC if --utc was given. --- diff --git a/src/list.c b/src/list.c index 3e2d127..869f2d0 100644 --- a/src/list.c +++ b/src/list.c @@ -20,7 +20,7 @@ 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Define to non-zero for forcing old ctime format instead of ISO format. */ -#undef USE_OLD_CTIME +#undef USE_OLD_CTIME #include "system.h" #include @@ -900,7 +900,7 @@ tartime (time_t t) #else /* Use ISO 8610 format. See: http://www.cl.cam.ac.uk/~mgk25/iso-time.html */ - struct tm *tm = localtime (&t); + struct tm *tm = utc_option ? gmtime (&t) : localtime (&t); if (tm) { sprintf (buffer, "%04ld-%02d-%02d %02d:%02d:%02d",