function to check for different values of NULL_DATE for backward compatibility
This commit is contained in:
parent
d1c9701ccf
commit
4e85bc66b8
@ -24,6 +24,13 @@ function timezone_cmp($a, $b) {
|
|||||||
return ( t($a) < t($b)) ? -1 : 1;
|
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.
|
* @brief Return timezones grouped (primarily) by continent.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user