Php unix时间戳转换结果不准确

Php unix时间戳转换结果不准确,php,Php,我正在尝试将unix时间戳转换为可读文本。时间戳存储在数据库中并显示在表中。问题是结果不准确。 代码: <td>'.date("F j, Y, g:i a", strtotime($row['expire'])).'</td> ”.date(“fj,Y,g:ia”,strotime($row['expire']) 数据库: <td>'.date("F j, Y, g:i a", strtotime($row['expire'])).'</td&g

我正在尝试将unix时间戳转换为可读文本。时间戳存储在数据库中并显示在表中。问题是结果不准确。
代码:

<td>'.date("F j, Y, g:i a", strtotime($row['expire'])).'</td>
”.date(“fj,Y,g:ia”,strotime($row['expire'])

数据库:

<td>'.date("F j, Y, g:i a", strtotime($row['expire'])).'</td>

结果:

<td>'.date("F j, Y, g:i a", strtotime($row['expire'])).'</td>
两个选项:

  • 删除
    strotime
    调用,因为您已经将时间戳作为一个数字,或者
  • 将数据库字段更改为TIMESTAMP

@Evan Mulawski我更新我的问题以显示过期