X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdatetime.php;h=9e1d4b55c9ba622c4242ac5db3f31c3721e12639;hb=85144908fa9cf12594b568f4f0b2d37fa21b6be1;hp=8d4961cd7c39334776487958711a40e99036ac10;hpb=4d30f2b292ec0b77de13cae3c622df84f84aa54f;p=friendica.git diff --git a/include/datetime.php b/include/datetime.php index 8d4961cd7c..9e1d4b55c9 100644 --- a/include/datetime.php +++ b/include/datetime.php @@ -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'); }