Log in

View Full Version : Time Zone Setting


TheInsaneManiac
08-03-2008, 01:56 PM
Does anyone know the variable for the time zone in vbulletin? IE $timesetting?

Edit:
I am trying to fix this code so it displays the users correct time:
$doublepost['message'] = $doublepost['pagetext'] . "\n\n" . '----Added '.date("j/n/Y"). ' at '.Date("g:i A").'----'.$vbulletin->options['xen_dp_spacer'] . "\n" . $post['message'];

So where would I place this:
$vbulletin->userinfo['timezoneoffset']

Opserty
08-03-2008, 09:55 PM
Just changing date to vbdate should do the trick, no need for anything else. (I think :D)

TheInsaneManiac
08-03-2008, 11:19 PM
What variable would that be? I don't want the date I want the time btw.

Opserty
08-04-2008, 09:20 AM
Why is it people that have the simple questions are the ones that want to learn and the ones with the hard questions just want the answers? :p

Check out the docs if you must: vbdate (http://members.vbulletin.com/api/vBulletin/_includes---functions.php.html#functionvbdate)

Or... just try it and see for yourself. Note: the code you posted uses "date" twice... :p

Just follow my instructions. ;)

TheInsaneManiac
08-04-2008, 11:14 AM
Why is it people that have the simple questions are the ones that want to learn and the ones with the hard questions just want the answers? :p

Check out the docs if you must: vbdate (http://members.vbulletin.com/api/vBulletin/_includes---functions.php.html#functionvbdate)

Or... just try it and see for yourself. Note: the code you posted uses "date" twice... :p

Just follow my instructions. ;)
Because we're lazy. So how about saving me the time and doing my homework for me? :D

Opserty
08-04-2008, 11:20 AM
I hope that was sarcasm because if it wasn't...:mad:

:p

nexialys
08-04-2008, 11:24 AM
I'm with the lady here... you do not deserve your title if you are that lazy... sarcasm is not good on google!

TheInsaneManiac
08-04-2008, 11:27 AM
I'm with the lady here... you do not deserve your title if you are that lazy... sarcasm is not good on google!
Well let me put it this way. I didn't know what the variable was called, so I spent like 3 hours searching google, not knowing what I was looking for. Then Opserty told me what to try and for the past 7 minutes I have tried all sorts of different combination's of code to make it work, but it just ends up messing it up. It's 8:27 AM and if someone knows how to fix it, then save me the time so I can get to sleep.

Opserty
08-04-2008, 11:52 AM
Oh wait, is this added to post message for a double post auto-merge mod similar to vB.org's? If so you can't adjust the time for each user as it is written into the message and just a piece of text.

Would have been helpful to have said what it was for in the first post. :p

I'd have presumed it was just a normal page otherwise.

TheInsaneManiac
08-04-2008, 04:06 PM
Oh wait, is this added to post message for a double post auto-merge mod similar to vB.org's? If so you can't adjust the time for each user as it is written into the message and just a piece of text.

Would have been helpful to have said what it was for in the first post. :p

I'd have presumed it was just a normal page otherwise.
So there's no way to implement this code?