使用php,我正在使用变量将创建日期或修改日期插入或更新mysql数据库。
$datestring = "%Y:%m:%d %h:%i:%s";
$time = time();
$createdate= mdate($datestring, $time);
在这里,$createdate
是我用来插入或更新表格的变量。但它更新了错误的值。它不是服务器时间或本地时间。通常它会比服务器时间晚30分钟。