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

There is a bug in this version
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...