Replace hard coded timezone with function from date module

This commit is contained in:
2014-12-01 23:12:42 +11:00
parent 3a9c06e19a
commit 9a8ebbb5a8
4 changed files with 15 additions and 24 deletions

View File

@@ -19,7 +19,7 @@ define('EVENTID', 1);
define('BOOKING_PAYPAL_SUBMIT_URL', 'https://www.paypal.com/cgi-bin/webscr');
define('BOOKING_PAYPAL_SUBMIT_URL_SANDBOX', 'https://www.sandbox.paypal.com/cgi-bin/webscr');
define('BOOKING_PAYPAL_IPN_PATH', 'system/booking_paypal/ipn');
define('TIMEZONE', 'Australia/Sydney');
define('date_default_timezone(FALSE)', 'Australia/Sydney');
define('BOOKING_DEFAULT_STATE', 'NSW');
//define('CUSTOM_EMAIL_COUNT', 10);
//define('STUDYGROUP_COUNT', 7);
@@ -68,7 +68,7 @@ module_load_include('inc', 'booking', 'booking.rooms');
module_load_include('inc', 'booking', 'booking.rooms_admin');
function booking_init() {
date_default_timezone_set(TIMEZONE);
date_default_timezone_set(date_default_timezone(FALSE));
global $event;
//reference - http://www.devdaily.com/drupal/drupal-7-sql-cheat-sheet-function-examples