Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b46ea90 commit b47913fCopy full SHA for b47913f
1 file changed
Lib/sqlite3/test/types.py
@@ -382,8 +382,7 @@ def CheckSqliteTimestamp(self):
382
@unittest.skipIf(sqlite.sqlite_version_info < (3, 1),
383
'the date functions are available on 3.1 or later')
384
def CheckSqlTimestamp(self):
385
- # SQLite's current_timestamp uses UTC time, while datetime.datetime.now() uses local time.
386
- now = datetime.datetime.now()
+ now = datetime.datetime.utcnow()
387
self.cur.execute("insert into test(ts) values (current_timestamp)")
388
self.cur.execute("select ts from test")
389
ts = self.cur.fetchone()[0]
0 commit comments