Debe colocar comillas alrededor de su fecha, es decir, $timestring
como
"UPDATE posts SET creatdate = '$timestring' WHERE postid = 1 "
Debe colocar comillas alrededor de su fecha, es decir, $timestring
como
"UPDATE posts SET creatdate = '$timestring' WHERE postid = 1 "