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

Fix a bug in the HH:MM:SS modifier change that was just checked in. (CVS 1278)

FossilOrigin-Name: 248b5500900bc8f401006aaa9b7dac090ae419fa
This commit is contained in:
drh
2004-02-29 00:48:08 +00:00
parent 33a9ad2f8c
commit 446536a089
3 changed files with 10 additions and 8 deletions

View File

@@ -16,7 +16,7 @@
** sqliteRegisterDateTimeFunctions() found at the bottom of the file.
** All other code has file scope.
**
** $Id: date.c,v 1.13 2004/02/29 00:40:32 drh Exp $
** $Id: date.c,v 1.14 2004/02/29 00:48:09 drh Exp $
**
** NOTES:
**
@@ -579,6 +579,8 @@ static int parseModifier(const char *zMod, DateTime *p){
memset(&tx, 0, sizeof(tx));
if( parseHhMmSs(z2, &tx) ) break;
computeJD(&tx);
computeJD(p);
clearYMD_HMS_TZ(p);
if( z[0]=='-' ) tx.rJD = -tx.rJD;
day = (int)tx.rJD;
p->rJD += tx.rJD - day;