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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user