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
- 24,725
- Points
- 823
Reputation:
Hi,
So I am working with timestamps for most of the dates on my addon. They all work great programattically in PHP but when I have them in the template and I want to display them from a custom field I used
{{ date_time(date_from_format('U', $thread.custom_fields.EndTimeStamp)) }} Which correctly brings back the GMT time, however I want these to display in the local time or timezone relevant time.
i.e. timestamp is showing as thursday 8th january, 9am. which is in my timezone thursday...
Read more
Continue reading...
So I am working with timestamps for most of the dates on my addon. They all work great programattically in PHP but when I have them in the template and I want to display them from a custom field I used
{{ date_time(date_from_format('U', $thread.custom_fields.EndTimeStamp)) }} Which correctly brings back the GMT time, however I want these to display in the local time or timezone relevant time.
i.e. timestamp is showing as thursday 8th january, 9am. which is in my timezone thursday...
Read more
Continue reading...