1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Allow the character "T" between date and time in ISO-8601 date/time formats.

Ticket #1170. (CVS 2408)

FossilOrigin-Name: 2bf88daa57b01216c7bbe67972f479ee12be1193
This commit is contained in:
drh
2005-03-21 00:43:44 +00:00
parent 09bf0e8d5e
commit 4cb29b4cfc
4 changed files with 16 additions and 12 deletions

View File

@@ -16,7 +16,7 @@
** sqlite3RegisterDateTimeFunctions() found at the bottom of the file.
** All other code has file scope.
**
** $Id: date.c,v 1.43 2005/01/15 01:52:32 drh Exp $
** $Id: date.c,v 1.44 2005/03/21 00:43:44 drh Exp $
**
** NOTES:
**
@@ -272,7 +272,7 @@ static int parseYyyyMmDd(const char *zDate, DateTime *p){
return 1;
}
zDate += 10;
while( isspace(*(u8*)zDate) ){ zDate++; }
while( isspace(*(u8*)zDate) || 'T'==*(u8*)zDate ){ zDate++; }
if( parseHhMmSs(zDate, p)==0 ){
/* We got the time */
}else if( *zDate==0 ){