Skip to content

Instantly share code, notes, and snippets.

@dlundgren
Created October 22, 2013 20:31
Show Gist options
  • Save dlundgren/7107597 to your computer and use it in GitHub Desktop.
Save dlundgren/7107597 to your computer and use it in GitHub Desktop.
partkeepr:: replacement function for isTimezoneSetAndValid()
<?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