vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Time Zone Setting (https://vborg.vbsupport.ru/showthread.php?t=187118)

TheInsaneManiac 08-03-2008 01:56 PM

Time Zone Setting
 
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

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

Quote:

Originally Posted by Opserty (Post 1591041)
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

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

Quote:

Originally Posted by nexialys (Post 1591102)
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

Quote:

Originally Posted by Opserty (Post 1591119)
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?


All times are GMT. The time now is 01:03 AM.

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.00971 seconds
  • Memory Usage 1,731KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete