Browse Source

fix table creation

Eren Yilmaz 6 years ago
parent
commit
602d7c513c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      db_setup.py

+ 1 - 1
db_setup.py

@@ -328,7 +328,7 @@ def tables(cursor):
                 ''')
     cursor.execute('''
                 CREATE TABLE IF NOT EXISTS news(
-                    datetime (dt, 'localtime') DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+                    dt DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
                     title VARCHAR(50) NOT NULL
                 )
                 ''')