From: Howard Chu Date: Thu, 29 May 2003 06:15:03 +0000 (+0000) Subject: Fix lutil_localtime for EBCDIC X-Git-Tag: OPENLDAP_REL_ENG_2_2_0ALPHA~23 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=62cc5d2f398ca8a900153b3426e3a606d4114a08;p=openldap Fix lutil_localtime for EBCDIC --- 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; }