So my date format on my page is showing the time 6 hours ahead. How can i change it so it shows the correct time this is my query
$query = "SELECT firstName,lastName, post,date_format(postDate,'%M,%d,%Y at %H:%i') as mydatefield
FROM users INNER JOIN posts ON userId = empl_Id
ORDER BY postDate";
This inserts values into table
$query = "INSERT INTO posts(postId,empl_Id,post,postDate)
VALUES('','$empId','$idea',NOW())";
$result = mysqli_query($db, $query);