XF 2.2 Timestamps aren't working in template

punisher1

Member
So basically, I am receiving some UNIX Timestamp using BBcode.

I am passing this value for example: 1735841959

And I'm dumping it in the template and it's giving the output as false.
But if I put some timestamp which is from year 5051 then it works and sees it as UNIX Timestamp.

So I don't know what to do... It's quite weird issue I got here. Any ideas?
 
Ok the thing is, the working one was coming, but the one who gives false output is not coming... And this is weird issue cuz why do the software choosing which one is going to come and which is not? Like what??
 
What are you actually putting in the template, and what "isn't working" about it?

If I add this:

Code:
<xf:date time="1735841959" />

it outputs "2025-01-02 6:19 pm"

If you've added a bbcode (I'm not sure why you're using a bbcode in a template) there's probably something wrong with it but it's very unclear what it is you're actually doing.
 
Top Bottom