Replace hard coded timezone with function from date module
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user