Make sqlite use local time rather than UTC
This commit is contained in:
parent
84b83a9c48
commit
9027c7ccb3
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ sql_conn = sqlite3.connect(database_filename)
|
||||||
cur = sql_conn.cursor()
|
cur = sql_conn.cursor()
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
values = cur.execute("SELECT * FROM tweets WHERE timestamp < datetime('now') AND sent = 0")
|
values = cur.execute("SELECT * FROM tweets WHERE timestamp < datetime('now','localtime') AND sent = 0")
|
||||||
for status in values:
|
for status in values:
|
||||||
original = int(status[0])
|
original = int(status[0])
|
||||||
recipient = status[2]
|
recipient = status[2]
|
||||||
|
|
Loading…
Reference in a new issue