From f70d159ca71a407eb056ecd0c03890aa1e671268 Mon Sep 17 00:00:00 2001 From: yggverse Date: Fri, 4 Oct 2024 19:19:06 +0300 Subject: [PATCH] fix unixtime detection for default record time --- src/app/database.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/database.rs b/src/app/database.rs index ac02fdaf..e96c42d7 100644 --- a/src/app/database.rs +++ b/src/app/database.rs @@ -16,7 +16,7 @@ impl Database { "CREATE TABLE IF NOT EXISTS `app` ( `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - `time` INTEGER NOT NULL DEFAULT CURRENT_TIMESTAMP + `time` INTEGER NOT NULL DEFAULT (UNIXEPOCH('NOW')) )", [], )?;