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

Try again to get the HH:MM:SS modifier change right... (CVS 1279)

FossilOrigin-Name: e20d51f94ed67b8864a435e5735f61f396662c21
This commit is contained in:
drh
2004-02-29 00:50:33 +00:00
parent 446536a089
commit b6829e94bd
3 changed files with 12 additions and 10 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.14 2004/02/29 00:48:09 drh Exp $
** $Id: date.c,v 1.15 2004/02/29 00:50:33 drh Exp $
**
** NOTES:
**
@@ -581,9 +581,11 @@ static int parseModifier(const char *zMod, DateTime *p){
computeJD(&tx);
computeJD(p);
clearYMD_HMS_TZ(p);
if( z[0]=='-' ) tx.rJD = -tx.rJD;
day = (int)tx.rJD;
p->rJD += tx.rJD - day;
tx.rJD -= day;
tx.rJD -= 0.5;
if( z[0]=='-' ) tx.rJD = -tx.rJD;
p->rJD += tx.rJD;
rc = 0;
break;
}