所以我页面上的日期格式显示提前 6 小时的时间。我该如何更改它以显示正确的时间这是我的查询
$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";
这会将值插入表中
$query = "INSERT INTO posts(postId,empl_Id,post,postDate)
VALUES('','$empId','$idea',NOW())";
$result = mysqli_query($db, $query);