send date
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simple_Not 2022-10-29 13:51:09 +10:00
parent be02399eb0
commit 218484a0f1

View File

@ -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"));