View Full Version : Using vbdate
ryany
Sat 24th Aug '02, 6:00am
In using vbdate on my own php file. The time does not follow.
ie
$entrydate = vbdate($dateformat, $timestamp);
$entrytime = vbdate($timeformat, $timestamp);
gives
10-08-2002 09:15 AM in a vbpage
but gives
09-08-2002 06:15 PM on my page
I seem to be missing something, and i think its got to do with $bbuserinfo['timezoneoffset'] but I'm not sure what.
*ponders*
Nicolas2000
Sat 24th Aug '02, 1:50pm
$timeoffset ? You should define this variable in your script
ryany
Sun 25th Aug '02, 2:03am
hmm do you mean $bbuserinfo['timezoneoffset'] ? It should already be called in global.php ...
Nicolas2000
Sun 25th Aug '02, 6:04am
Originally posted by ryany
hmm do you mean $bbuserinfo['timezoneoffset'] ? It should already be called in global.php ... $bbuserinfo['timezoneoffset'] is the personnal time offset for each member (..) Sorry My english is bad... Please correct me :D
Now, $timeoffset is the time offsset of your server... for ex : if your are at Paris and your server at New York, it would be good that the hour of your computer is the same as the board (server)
$timeoffset defined in the data base, in setting table, do a query to find the ligne.
After, define $timeoffset and $bbuserinfo['timezoneoffset']
ryany
Sun 25th Aug '02, 9:55am
ahhh ok thank you :)
Nicolas2000
Sun 25th Aug '02, 11:25am
hi, can you correct my english please ?
vBulletin® v3.8.0 Beta 4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.