diff --git a/DBchat.cs b/DBchat.cs index e4c295b..3bd255f 100644 --- a/DBchat.cs +++ b/DBchat.cs @@ -129,7 +129,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) + SELECT date_trunc( 'second', now()::timestamp(0) ) ) )", conn)) { command.Parameters.AddWithValue("postText", postToSend.Text);