Created
October 22, 2013 20:31
-
-
Save dlundgren/7107597 to your computer and use it in GitHub Desktop.
partkeepr:: replacement function for isTimezoneSetAndValid()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Checks if the timezone is set and valid. | |
* | |
* @param none | |
* @return bool True if the timezone is set and valid, false otherwise. | |
*/ | |
function isTimezoneSetAndValid () { | |
$tz = date_default_timezone_get(); | |
if (empty($tz)) { | |
return false; | |
} | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment