DateTime :: __ construct():无法在位置0(n)处解析时间字符串(null):在数据库中找不到时区

时间:2016-05-12 17:00:33

标签: php datetime joomla3.0

我升级到最新的Joomla版本,现在收到此错误(到目前为止仅在访问用户管理器时)。我已经搜索过网络并找到了一些解决方案,当一个特定的组件引起了这个问题但没有什么可以解决我的问题。

如果有人可以请给我一个关于如何解决这个php错误的指针,我会永远感激不尽:)

1 个答案:

答案 0 :(得分:0)

参考https://api.joomla.org/cms-3/classes/JHtml.html



calendar(string $value, string $name, string $id, string $format = '%Y-%m-%d', mixed $attribs = null) : string



 应该看起来像下面的代码


date(string $input = 'now', string $format = null, mixed $tz = true, boolean $gregorian = false) : string




请记住日期函数中的第二个数据为空。更改它并再次检查您的代码。