diff --git a/tweeter.py b/tweeter.py index 373f180..99e6b5d 100755 --- a/tweeter.py +++ b/tweeter.py @@ -23,7 +23,7 @@ sql_conn = sqlite3.connect(database_filename) cur = sql_conn.cursor() 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: original = int(status[0]) recipient = status[2]