vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Server date (https://vborg.vbsupport.ru/showthread.php?t=39217)

Boofo 05-30-2002 01:24 AM

Server date
 
Is there an easy way to get the actual server date so I could have something like this?

The time is now 4:15 pm an Wedenesday, May 29, 2002.

But I want it to be able to change according to the users's timezone too.

I have a javascript hack that will tell you if there are any important days on the date, like Washington's Birthday and Girl's Day in Japan and things like that. If I can get the date to change as the usertime changes, I can incorporate this too.

Brad 05-30-2002 05:55 AM

i know of a few cgi scripts that will do this, i dont see y its needed under vB, i always used it under ubb due to lack of time offset

Boofo 05-30-2002 05:58 AM

I want to be able to have the current date as well as the current time on the foumhome. If the time is offset for one user, I want the date to be able to be offset as well. :)

Brad 05-30-2002 07:16 AM

dose it have to be php or will a cgi script do?

Boofo 05-30-2002 07:27 AM

PHP would be better but whatever will work will do. If it can adjust the day according to the users's timeset, then it'll work. The one I was using (javascript) pulled the date fine until the time was offset to -6 (for example, then the day stayed the same at midnight instead of going back to the day before if the time was minus midnight. Does that make any sense? :)

Brad 05-30-2002 07:41 AM

http://www.simplythebest.net/cgiscripts/
http://cgi.resourceindex.com/


i found it somewhere in thoese two sites, i would post php but my coding backround is in perl and i know little php resource sites

Boofo 05-30-2002 07:53 AM

Will any of these CGI scripts integrate with vb with the offset or just show the server time? I can show the server time already. It just won't go along with the offset.

Brad 05-30-2002 08:04 AM

well if a user sets his time right some scripts will pull the time off the users computer and disply that, its about what your looking for


All times are GMT. The time now is 11:44 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.01394 seconds
  • Memory Usage 1,717KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete