vb.org Archive

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

prowarfare 12-05-2007 09:29 PM

Time Offset Code
 
Hello, The web server my forums are hosted on is set 1 hour off of the real time. So on my computer w/ Timezone -8 at 7:00. The server says 6:00 w/ set to -8.

Is there a line of coding or a few lines of coding i could add in where it adds 1 hour to whatever the time is? Some of my members have been complaining about it.

Example: (server time) + 1 = what members see.

Marco van Herwaarden 12-06-2007 06:18 AM

Why not set the server to the correct time?

prowarfare 12-07-2007 01:42 AM

Its web hosting from siteground.com I get cpanel access, they dont allow you to change the server unless you buy a dedicated server. Thats why I want to see If i can add in a code to fix it.

Marco van Herwaarden 12-07-2007 08:33 AM

If they set the server to the correct time, timezone & DST, then you should have no problems. Regardless if this is a dedicated server or not, you should at least expect they setup the server correctly.

prowarfare 12-07-2007 12:42 PM

They said they are running CDT (Cental Daylight Time)

What they replied to in my support ticket.
Quote:

The current time zone on the server is set to CDT:

http://en.wikipedia.org/wiki/Central...rth_America%29

support@support.com [~]# date
Thu Jun 28 16:12:19 CDT 2007
support@support.com [~]#

I am afraid that this can not be changed.

Marco van Herwaarden 12-07-2007 12:44 PM

If the server time & timezone is set correctly (regardless of the timezone used) and you have set your user timeoptions correctly in your UserCP settings, then the time should show correctly.


All times are GMT. The time now is 10:10 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.01799 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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