Skip to content
This repository was archived by the owner on Jan 18, 2021. It is now read-only.

Commit e542406

Browse files
committed
fix log timestamp
1 parent c60f171 commit e542406

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Base/log.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ void generalLog(unsigned int pri, std::string_view area, char const *source, uns
209209
} else {
210210
static SQLite::Statement insert_temp{*log_database,
211211
"INSERT INTO temp.pending (time, priority, area, source, line, content) "
212-
"VALUES (date('now'), ?, ?, ?, ?, ?)"};
212+
"VALUES (CURRENT_TIMESTAMP, ?, ?, ?, ?, ?)"};
213213
insert_temp.bind(1, pri);
214214
insert_temp.bindNoCopy(2, area.data());
215215
insert_temp.bindNoCopy(3, source);

0 commit comments

Comments
 (0)