Issue #29123: Merge from 3.6

This commit is contained in:
Berker Peksag 2016-12-31 22:49:56 +03:00
commit 06c0dca5a6
1 changed files with 1 additions and 2 deletions

View File

@ -382,8 +382,7 @@ class DateTimeTests(unittest.TestCase):
@unittest.skipIf(sqlite.sqlite_version_info < (3, 1),
'the date functions are available on 3.1 or later')
def CheckSqlTimestamp(self):
# SQLite's current_timestamp uses UTC time, while datetime.datetime.now() uses local time.
now = datetime.datetime.now()
now = datetime.datetime.utcnow()
self.cur.execute("insert into test(ts) values (current_timestamp)")
self.cur.execute("select ts from test")
ts = self.cur.fetchone()[0]