![]() |
Time display at footer of Vbulletin
How do I display time in a specific timezone at the bottom of vbulletin footer?
My site shows GMT which I would rather have indicate EST but for the life of me I cannot find that option.THanks much! I am on 3.6.9 Doc www.ddsog.com/forums |
admincp -> vbulletin options -> date and time settings ?
|
|
What do you have it set to in your usercp
profile settings? |
If logged in, it will show the users timezone as set in their UserCP.
|
As a followup, what's the correct method in vB for converting a timestamp to the users timezone as specified in the UserCP? I have a series of unix timestamps stored in the EST5EDT timezone and I wish to have a formatted date displayed to the users in their local preference. vbdate() seemed the most logical but it doesn't seem to be doing conversions.
|
Are you trying to get it to show the user's local date and time?
|
Quote:
I thought vbdate() took care of conversion but this was a mistaken assumption and I was wondering if there was some built-in method of doing this in vB? |
I think you need to look at the vbmktime function.
|
Quote:
Basically I have: 1209057260 (which is 2008-04-24 13:14:19, the local timezone of the server). If a user has their preferences set for PST I want to be able to display '2008-04-25 10:14:19' to that user or in whatever TZ they have set from the UserCP. |
All times are GMT. The time now is 01:53 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|