phpScheduleIt
June 20, 2013, 05:22:36 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: phpScheduleIt 2.4.2 has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: re: $conf['app']['timezone']  (Read 6655 times)
spaceageliving
Newbie
*

Karma: 0
Posts: 8


« on: August 18, 2006, 11:50:41 PM »

I'm on a shared hosting environment where the server reports its time set to GMT (I think, from what I have deduced...PHP's time functions indicate GMT when I call them anyway).

I set $conf['app']['timezone'] = -5 since I want the calendar to reflect EST.  However, the calendar is "greying out" entries for the day starting at 10:00PM EST--which means, I think, that the calendar believes 12am is really 10pm (calendar is running 2 hours early...).

Is this a php/time zone issue, or am I using $conf['app']['timezone'] correctly?  If I'm not mistaken, I would need to use $conf['app']['timezone'] = -3 to adjust this correctly, which is probably Iceland (IST) or something ;-).

TIA--David
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5506


WWW
« Reply #1 on: August 22, 2006, 10:25:49 AM »

You can figure out what timezone the server is using with this function:

http://www.php.net/manual/en/function.date-default-timezone-get.php

Also, if you have the reservation minimum notice time set to 3 hours with timezone at -5, you would also see the same result.
Logged
spaceageliving
Newbie
*

Karma: 0
Posts: 8


« Reply #2 on: August 22, 2006, 10:41:43 AM »

Nick--this is probably a "duh" question, but I can't find the reservation minimum notice time setting anywhere...is it in config.php?

Also, it looks like date_default_timezone_get is a php5-only function?
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5506


WWW
« Reply #3 on: August 22, 2006, 10:54:03 AM »

That setting is in the resource management admin page.

Another way to check the timezone of the server is just print out the date('d-M-Y H:i:s');  Then you can compare to your local time and figure out the right timezone.
Logged
spaceageliving
Newbie
*

Karma: 0
Posts: 8


« Reply #4 on: August 22, 2006, 11:02:10 AM »

I see 'Minimum Reservation Time' (which is set to 0/0), but I don't think this is the setting you are referring to (reservation min notice time)...am I missing something?
Logged
spaceageliving
Newbie
*

Karma: 0
Posts: 8


« Reply #5 on: August 22, 2006, 11:23:23 AM »

OK, so I ran date(); as you suggested and it looks like the server is running GMT since it is 8 hours ahead of PST.

Oddly, users are "greyed out" of the calendar entries for the day at 8:30pm EST when I'm running:

$conf['app']['timezone'] = -5;

...in an attempt to have the calendar reflect EST.

Must this be due to the reservation min notice time setting which you have referred to?
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5506


WWW
« Reply #6 on: August 22, 2006, 12:45:12 PM »

That's possible.  Or it may be a bug somewhere in the code.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!