From 62cc5d2f398ca8a900153b3426e3a606d4114a08 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 29 May 2003 06:15:03 +0000 Subject: [PATCH] Fix lutil_localtime for EBCDIC --- libraries/liblutil/utils.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/liblutil/utils.c b/libraries/liblutil/utils.c index ee0c25cd25..8bc964bae8 100644 --- a/libraries/liblutil/utils.c +++ b/libraries/liblutil/utils.c @@ -81,6 +81,10 @@ size_t lutil_localtime( char *s, size_t smax, const struct tm *tm, long delta ) #pragma convlit(suspend) #endif ret = strftime( s, smax, "%Y%m%d%H%M%SZ", tm ); +#ifdef HAVE_EBCDIC +#pragma convlit(resume) + __etoa( s ); +#endif if ( delta == 0 || ret == 0 ) { return ret; } @@ -102,10 +106,6 @@ size_t lutil_localtime( char *s, size_t smax, const struct tm *tm, long delta ) snprintf( p, smax - 15, "%02ld%02ld", delta / 3600, ( delta % 3600 ) / 60 ); -#ifdef HAVE_EBCDIC -#pragma convlit(resume) - __etoa( s ); -#endif return ret + 5; } -- 2.39.5