vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Time display at footer of Vbulletin (https://vborg.vbsupport.ru/showthread.php?t=176343)

Doctor Death 04-16-2008 02:50 PM

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

nighthalk 04-16-2008 03:08 PM

admincp -> vbulletin options -> date and time settings ?

Doctor Death 04-16-2008 04:00 PM

I have it set in there to EST but my footer continues to show GMT.

www.ddsog.com/forums

nighthalk 04-16-2008 04:33 PM

What do you have it set to in your usercp
profile settings?

Marco van Herwaarden 04-17-2008 10:38 AM

If logged in, it will show the users timezone as set in their UserCP.

Solo Drakban 04-24-2008 01:24 PM

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.

Boofo 04-24-2008 01:56 PM

Are you trying to get it to show the user's local date and time?

Solo Drakban 04-24-2008 02:33 PM

Quote:

Originally Posted by Boofo (Post 1498159)
Are you trying to get it to show the user's local date and time?

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?

Boofo 04-24-2008 03:22 PM

I think you need to look at the vbmktime function.

Solo Drakban 04-24-2008 04:17 PM

Quote:

Originally Posted by Boofo (Post 1498251)
I think you need to look at the vbmktime function.

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.


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
  • Page Generation 0.01171 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete