From f1fc5752964b8dc9d9159afa1fae7e33234c1432 Mon Sep 17 00:00:00 2001 From: Walter Negro Date: Wed, 3 Jul 2002 21:23:28 +0000 Subject: [PATCH] * source/rtl/dates.c * More compliant for certain strange formats. eg: DD/MMM/YYYY --- harbour/source/rtl/dates.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/harbour/source/rtl/dates.c b/harbour/source/rtl/dates.c index 7a313c422e..a5cd7f7950 100644 --- a/harbour/source/rtl/dates.c +++ b/harbour/source/rtl/dates.c @@ -253,13 +253,15 @@ char * hb_dateFormat( const char * szDate, char * szFormattedDate, const char * case 4: if( ! used_d && format_count < size ) { - szFormattedDate[ format_count++ ] = '0'; +// szFormattedDate[ format_count++ ] = '0'; + szFormattedDate[ format_count++ ] = szDate[ 6 ]; digit_count--; } case 3: if( ! used_d && format_count < size ) { - szFormattedDate[ format_count++ ] = '0'; +// szFormattedDate[ format_count++ ] = '0'; + szFormattedDate[ format_count++ ] = szDate[ 6 ]; digit_count--; } case 2: @@ -285,13 +287,15 @@ char * hb_dateFormat( const char * szDate, char * szFormattedDate, const char * case 4: if( ! used_m && format_count < size ) { - szFormattedDate[ format_count++ ] = '0'; +// szFormattedDate[ format_count++ ] = '0'; + szFormattedDate[ format_count++ ] = szDate[ 4 ]; digit_count--; } case 3: if( ! used_m && format_count < size ) { - szFormattedDate[ format_count++ ] = '0'; +// szFormattedDate[ format_count++ ] = '0'; + szFormattedDate[ format_count++ ] = szDate[ 4 ]; digit_count--; } case 2: