XF 1.1 How Do i add Server time?

JMPRockFm

Active member
Hello.

How Would i add Server Time and it will tell you the time of the Server in the uk. what would be the code for that thanks.
For Minecraft
 
This template code will output the full date and time, but it uses the time zone of the current user:

Code:
{xen:datetime $serverTime, 'absolute'}

I don't see any option to display the server time without an offset. This may require an addon.
 
I just looked again but my previous answer still holds. The server time is available as {$serverTime} in the templates, but it's a timestamp. To convert it to a readable time requires using a date function (like xen:datetime from my previous post), but that converts it to the user's time zone. I can't find any date function or option to convert the date without applying the user's time zone. An addon is required. You can post a request here:

http://xenforo.com/community/forums/add-on-requests.35/
 
Top Bottom