function to check for different values of NULL_DATE for backward compatibility

This commit is contained in:
redmatrix 2016-09-21 17:16:54 -07:00
parent d1c9701ccf
commit 4e85bc66b8

View File

@ -24,6 +24,13 @@ function timezone_cmp($a, $b) {
return ( t($a) < t($b)) ? -1 : 1;
}
function is_null_date($s) {
if($s === '0000-00-00 00:00:00' || $s === '0001-01-01 00:00:00')
return true;
return false;
}
/**
* @brief Return timezones grouped (primarily) by continent.
*