The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Time and date at the server
How would I go about getting the time and date at the server regardless of who is logged in? I have seen the following:
PHP Code:
Is there a magic way to craft the above code to give me the results I am looking for? |
#2
|
|||
|
|||
yes that code will give the user the correct current time based upon their offset values.
|
#3
|
||||
|
||||
Quote:
|
#4
|
|||
|
|||
If you just want the server time you can use the following
Code:
$dtnow = date(m-d-Y H:i:s); That will return 02-02-2005 13:25:23. Then you can add the EST or whatever. For more date options try www.php.net |
#5
|
||||
|
||||
Thanks for the input, but I was PMed with this solution (which I thought I would share if the question were to come up again). It seems to work as requested.
PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|