1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 member_view <xen:datetime

Discussion in 'Styling and Customization Questions' started by RichardKYA, Jan 15, 2016.

  1. RichardKYA

    RichardKYA Well-Known Member


    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.jpg

    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 :)
  2. katsulynx

    katsulynx Well-Known Member

    {xen:datetime $user.timezone, 'absolute'}

Share This Page