X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdatetime.php;h=9e1d4b55c9ba622c4242ac5db3f31c3721e12639;hb=f94a10bf00de699a5f3d22ea74665053a5661175;hp=8d4961cd7c39334776487958711a40e99036ac10;hpb=f852f7aac0b44f243d3cd812aa92122f7b38067b;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'); }