phpScheduleIt
June 19, 2013, 02:11:27 PM *
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: Admin can't make bookings  (Read 715 times)
slimrichard
Newbie
*

Karma: 0
Posts: 20


« on: May 13, 2012, 01:19:42 PM »

I have just moved my phpscheduleit site from one host to another with a 2 hour time diff. I updated the start and end times of all the bookings and they now display ok but I am getting a weird issue.

When I am logged in as a normal user I can make a booking fine, when I change that account to an admin account and i try and make a booking it shows the reservation screen with a 1/1/1970 time and the option to cancel or export and no booking is made.

Any ideas?
Logged
Azyrus
Newbie
*

Karma: 0
Posts: 28


« Reply #1 on: May 13, 2012, 05:58:27 PM »

Does the user have a different timezone to the admin? Thats my first guess =)
Logged
slimrichard
Newbie
*

Karma: 0
Posts: 20


« Reply #2 on: May 13, 2012, 08:38:10 PM »

Everyone is in the same timezone as I have disabled timezone selection in registration.

It is something in the database as i have done a fresh install and could make bookings ok as admin and then I restore my db and modify the reservation start_date and end_date values and the same problem again.

I will keep looking.
Logged
Azyrus
Newbie
*

Karma: 0
Posts: 28


« Reply #3 on: May 14, 2012, 01:15:16 AM »

Try testing the timezones,
Code:
<?php
echo date_default_timezone_get();
?>

Then create a php.ini file in the planner with the same timezone as the old host. Just a hunch, but I think it may work.
Logged
slimrichard
Newbie
*

Karma: 0
Posts: 20


« Reply #4 on: May 14, 2012, 03:14:21 AM »

Yay that worked! I had to set php safemode to on due to a bunch of db.php class errors and add the hours back onto the data manually via sql but admins can now make bookings Smiley

Thanks for the help!
Logged
Azyrus
Newbie
*

Karma: 0
Posts: 28


« Reply #5 on: May 14, 2012, 07:05:52 AM »

Thats great! I am happy I could help =)
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!