* source/rtl/dates.c

* More compliant for certain strange formats. eg: DD/MMM/YYYY
This commit is contained in:
Walter Negro
2002-07-03 21:23:28 +00:00
parent de3ac3e268
commit f1fc575296

View File

@@ -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: