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

Xon

Well-known member
Affected version
2.3.0
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)
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.3.1).

Change log:
Fix passing `\DateTime` objects into `\XF\Language::getDateTimeParts`
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom