XF 1.5 member_view <xen:datetime

RichardKYA

Well-known member
Hello,

In the member_view template I am trying to display the user's local date and time to match their timezone preference.

I added <xen:datetime time="$user.timezome" /> which displays the date, but the actual time is added to the title, so you have to hover over it see it. So I then added <xen:datetime time="$user.timezome" class="Tooltip" /> so that the title displays a bit better...

Screen Shot 2016-01-15 at 22.21.14.webp

I would prefer it if the time and date were displayed fully so that I don't need the Tooltip title at all. How can I achieve this?

Also, whilst trying to do this, I noticed that I had misspelled "timezone" as "timezome", so naturally I corrected this, but then I noticed that the time was behind by 2hrs, so I then removed "zone" so i was left with "$user.time" and it then displayed the correct time again? Why would this be?

Thank you for any help :)
 
Top Bottom