aboutsummaryrefslogtreecommitdiff
path: root/src/date.c
diff options
context:
space:
mode:
authorshane <shane@noemail.net>2008-12-10 22:30:24 +0000
committershane <shane@noemail.net>2008-12-10 22:30:24 +0000
commit18e526c16b79cea8c2258ca70fbf7ec5c59be701 (patch)
treee595674847189e812a1e49b823625ea122f108ce /src/date.c
parent0e4deca3e1fb7e753c0abbe05df78f6f577947ec (diff)
downloadsqlite-18e526c16b79cea8c2258ca70fbf7ec5c59be701.tar.gz
sqlite-18e526c16b79cea8c2258ca70fbf7ec5c59be701.zip
Work to remove harmless MSVC compiler warnings. (CVS 6013)
FossilOrigin-Name: 715dcd52c1372c62873cff5db97fdbdfce617808
Diffstat (limited to 'src/date.c')
-rw-r--r--src/date.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/date.c b/src/date.c
index cb38747ee..73cbe5e6c 100644
--- a/src/date.c
+++ b/src/date.c
@@ -16,7 +16,7 @@
** sqlite3RegisterDateTimeFunctions() found at the bottom of the file.
** All other code has file scope.
**
-** $Id: date.c,v 1.97 2008/12/10 21:19:57 drh Exp $
+** $Id: date.c,v 1.98 2008/12/10 22:30:25 shane Exp $
**
** SQLite processes all times and dates as Julian Day numbers. The
** dates and times are stored as the number of days since noon
@@ -550,7 +550,7 @@ static int parseModifier(const char *zMod, DateTime *p){
** seconds since 1970. Convert to a real julian day number.
*/
if( strcmp(z, "unixepoch")==0 && p->validJD ){
- p->iJD = p->iJD*10/864000 + 210866760000000LL;
+ p->iJD = p->iJD/86400 + 210866760000000LL;
clearYMD_HMS_TZ(p);
rc = 0;
}