To me it seems that the types of the properties lastvisitedDate
and registerDate
of \Joomla\CMS\User\User
are wrong in the API documentation. I guess they should be string
(at least if the other database drivers handle dates in a similar way compared to MySQLi).
joomla-cms/libraries/src/User/User.php
Lines 102 to 116 in 7162ed4
Thinking the lastvisitedDate
property of \Joomla\CMS\User\User
was an \DateTime
object I tried to clone
it in my own plugin in order to convert the date to a string in the User’s timezone. However, that gave me an error because the property actually was a string
.
The issue occured on J3.9.16 using the MySQLi database driver.
See #28766.
None.
Labels |
Added:
?
|
Title |
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-04-22 21:48:13 |
Closed_By | ⇒ | Quy |
Closing as we have patch #28766