tests[state-server]: Create test cases for StateServer
create test cases for StateServer, still broken
Change-Id: Ifd3e19aa6b7d3f43edb0541695dd45f176e9490c
diff --git a/src/action-log.cpp b/src/action-log.cpp
index 7c5bacd..328d5f4 100644
--- a/src/action-log.cpp
+++ b/src/action-log.cpp
@@ -178,8 +178,9 @@
"file_hash, file_atime, file_mtime, file_ctime, file_chmod, file_seg_num, "
"parent_device_name, parent_seq_no, "
"action_name, action_content_object) "
- "VALUES (?, ?, ?, ?, ?, datetime(?, 'unixepoch'),"
- " ?, datetime(?, 'unixepoch'), datetime(?, 'unixepoch'), datetime(?, 'unixepoch'), ?,?, "
+ "VALUES (?, ?, ?, ?, ?, datetime(?, 'unixepoch', 'localtime'),"
+ " ?, datetime(?, 'unixepoch', 'localtime'), datetime(?, 'unixepoch', 'localtime'), "
+ " datetime(?, 'unixepoch', 'localtime'), ?, ?, "
" ?, ?, "
" ?, ?);",
-1, &stmt, 0);
@@ -330,7 +331,7 @@
"(device_name, seq_no, action, filename, version, action_timestamp, "
"parent_device_name, parent_seq_no, "
"action_name, action_content_object) "
- "VALUES(?, ?, ?, ?, ?, datetime(?, 'unixepoch'),"
+ "VALUES(?, ?, ?, ?, ?, datetime(?, 'unixepoch', 'localtime'),"
" ?, ?,"
" ?, ?)",
-1, &stmt, 0);