* source/rtl/dates.c
* More compliant for certain strange formats. eg: DD/MMM/YYYY
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user