From 218484a0f12baf20cee134f2815b015b529aac17 Mon Sep 17 00:00:00 2001 From: Simple_Not <44047940+moonbaseDelta@users.noreply.github.com> Date: Sat, 29 Oct 2022 13:51:09 +1000 Subject: [PATCH] send date --- DBchat.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DBchat.cs b/DBchat.cs index 81aa10d..4c0a8b9 100644 --- a/DBchat.cs +++ b/DBchat.cs @@ -128,7 +128,7 @@ namespace NeDvachAPI using (var command = new NpgsqlCommand(@" INSERT INTO dvach " + @"(post_id, post, post_timestamp) - VALUES (DEFAULT, @postText, (SELECT date_trunc('second', now()::timestamp(0)) AT TIME ZONE 'UTC-10') )", conn)) + VALUES (DEFAULT, @postText, ( SELECT date_trunc('second', now()::timestamp(0) ) )", conn)) { command.Parameters.AddWithValue("postText", postToSend.Text); //command.Parameters.AddWithValue("postTimeStamp", DateTime.Now.ToString("dd/MM/yyyy HH:mm"));