The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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 |
#2
|
|||
|
|||
![]()
admincp -> vbulletin options -> date and time settings ?
|
#3
|
|||
|
|||
![]() |
#4
|
|||
|
|||
![]()
What do you have it set to in your usercp
profile settings? |
#5
|
|||
|
|||
![]()
If logged in, it will show the users timezone as set in their UserCP.
|
#6
|
|||
|
|||
![]()
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.
|
#7
|
||||
|
||||
![]()
Are you trying to get it to show the user's local date and time?
|
#8
|
|||
|
|||
![]()
No, I have a Unix timestamp in EDT, I'd like it to display it human-readable in whatever timezone the user has defined in their preferences. So if the timestamp is actually today at 5pm if the user had PST/PDT selected in their preferences they'd see it as 2pm.
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? |
#9
|
||||
|
||||
![]()
I think you need to look at the vbmktime function.
|
#10
|
|||
|
|||
![]()
That would be if I wanted to convert the human readable into unix epoch.
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. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|