mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Make sure the strftime() date conversions put in leading zeros correctly.
Ticket #2276. (CVS 3749) FossilOrigin-Name: e853067ec4db3eedfb4adcdd4172de2c55b9ac58
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
** sqlite3RegisterDateTimeFunctions() found at the bottom of the file.
|
||||
** All other code has file scope.
|
||||
**
|
||||
** $Id: date.c,v 1.60 2007/01/08 16:19:07 drh Exp $
|
||||
** $Id: date.c,v 1.61 2007/03/29 17:57:21 drh Exp $
|
||||
**
|
||||
** NOTES:
|
||||
**
|
||||
@@ -827,7 +827,7 @@ static void strftimeFunc(
|
||||
case 'f': {
|
||||
double s = x.s;
|
||||
if( s>59.999 ) s = 59.999;
|
||||
sqlite3_snprintf(7, &z[j],"%02.3f", s);
|
||||
sqlite3_snprintf(7, &z[j],"%06.3f", s);
|
||||
j += strlen(&z[j]);
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user