瀏覽代碼

fix table creation

Eren Yilmaz 6 年之前
父節點
當前提交
602d7c513c
共有 1 個文件被更改,包括 1 次插入1 次删除
  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
                 )
                 ''')