diff options
author | redmatrix <mike@macgirvin.com> | 2016-09-21 17:16:54 -0700 |
---|---|---|
committer | redmatrix <mike@macgirvin.com> | 2016-09-21 17:16:54 -0700 |
commit | 4e85bc66b8a5f5347ae15dda229f028d31b58469 (patch) | |
tree | 95ae10ae00437a8920e5ea79baf593cb981f768e /include | |
parent | d1c9701ccfefee7dbe79e9e0a54ce04a387b3233 (diff) | |
download | volse-hubzilla-4e85bc66b8a5f5347ae15dda229f028d31b58469.tar.gz volse-hubzilla-4e85bc66b8a5f5347ae15dda229f028d31b58469.tar.bz2 volse-hubzilla-4e85bc66b8a5f5347ae15dda229f028d31b58469.zip |
function to check for different values of NULL_DATE for backward compatibility
Diffstat (limited to 'include')
-rw-r--r-- | include/datetime.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/datetime.php b/include/datetime.php index 76bd6b8d6..914eac95e 100644 --- a/include/datetime.php +++ b/include/datetime.php @@ -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. * |