Adding the function to set default timezone before using date function for PHP5