RSS Feed/News <xf:date> displays day in browser timezone not forum/account timezone

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
33,772
Points
823

Reputation:

Currently Xenforo <xf:date> displays day from browser timezone not account timezone when they mismatch
assume you have
<xf:date time="1668142595" />
your browser time zone is UTC
your forum account time zone is (UTC-06:00) Central Time (US & Canada)

when page is rendered it has the correct PHP time and day
HTML:

<time class="u-dt" dir="auto" datetime="2022-11-10T22:56:35-0600" data-time="1668142595" data-date-string="Nov 10, 2022" data-time-string="10:56 PM" title="Nov 10...

Read more

Continue reading...
 
Status
Not open for further replies.
Top