RSS Feed/News XF\Language::getDateTimeParts errors if a \Datetime is passed in

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
26,006
Points
823

Reputation:

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...
 
Status
Not open for further replies.
Top