X Xon Well-known member Jul 22, 2024 #1 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)
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)
XF Bug Bot XenForo bug fixer bot Staff member Jul 25, 2024 #2 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` Click to expand... There may be a delay before changes are rolled out to the XenForo Community.
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` Click to expand... There may be a delay before changes are rolled out to the XenForo Community.