Browse Source

fix unixtime detection for default record time

master
yggverse 2 months ago
parent
commit
f70d159ca7
  1. 2
      src/app/database.rs

2
src/app/database.rs

@ -16,7 +16,7 @@ impl Database { @@ -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'))
)",
[],
)?;

Loading…
Cancel
Save