XF\Language::getDateTimeParts errors if a \Datetime is passed in

Status
This content is read-only, or is not open for further replies.

Xon

Guest
offline
XF\Language::getDateTimeParts used to accept a Datetime object, but since XF2.3 this is now broken.

The cause is the getShortDate function attempts to use the $timestamp as a key into an array (which doesn't work with Datetime object)

Continue reading...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom