Skip to content

Commit 3607c74

Browse files
committed
Fix write data format
1 parent 2703250 commit 3607c74

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Store simulation/Assets/!ProjectFiles/Features/Infrastructure/Services/DataBase/SqLiteDataBaseService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ public void AddTransaction(int storeId, TransactionType type, int totalPrice)
434434
{
435435
var query =
436436
"INSERT INTO Transactions (store_id, transaction_datetime, transaction_type, transaction_amount) " +
437-
$"VALUES ({storeId}, '{DateTime.Now}', '{type}', {totalPrice})";
437+
$"VALUES ({storeId}, '{DateTime.Now:yyyy-MM-dd HH:mm:ss}', '{type}', {totalPrice})";
438438

439439
ExecuteNonQuery(query);
440440
}
@@ -463,7 +463,7 @@ private DataTable ExecuteQuery(string query)
463463
{
464464
Debug.LogError(e);
465465
}
466-
466+
467467
return dataTable;
468468
}
469469

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)