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

Fix a bug in the computation of the current time for the alternative

CURRENT_TIMESTAMP functions used when SQLITE_OMIT_DATETIME is defined.

FossilOrigin-Name: e7ded46b5efabe521008d9043dd72bd1ca748316
This commit is contained in:
drh
2010-05-03 19:17:01 +00:00
parent 324e46d424
commit d5e6e4004b
3 changed files with 11 additions and 11 deletions

View File

@@ -1044,7 +1044,7 @@ static void currentTimeFunc(
db = sqlite3_context_db_handle(context);
sqlite3OsCurrentTimeInt64(db->pVfs, &iT);
t = (iT - 100*(sqlite3_int64)244058755)/1000;
t = iT/1000 - 10000*(sqlite3_int64)21086676;
#ifdef HAVE_GMTIME_R
{
struct tm sNow;