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

This topic has been solved
X

Xon

Guest
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...