]> git.mxchange.org Git - friendica.git/blobdiff - include/datetime.php
old behaviour restored
[friendica.git] / include / datetime.php
index 8d4961cd7c39334776487958711a40e99036ac10..9e1d4b55c9ba622c4242ac5db3f31c3721e12639 100644 (file)
@@ -339,7 +339,7 @@ function relative_date($posted_date, $format = null) {
 
        $abs = strtotime($localtime);
 
-       if (is_null($posted_date) || $posted_date === '0000-00-00 00:00:00' || $abs === False) {
+       if (is_null($posted_date) || $posted_date <= NULL_DATE || $abs === False) {
                 return t('never');
        }