diff --git a/include/datetime.php b/include/datetime.php index 540c43691..b0621f4a2 100644 --- a/include/datetime.php +++ b/include/datetime.php @@ -153,7 +153,7 @@ function relative_date($posted_date) { } function age($dob,$owner_tz = '',$viewer_tz = '') { - if(strlen($dob) != 10) + if(! intval($dob)) return 0; if(! $owner_tz) $owner_tz = date_default_timezone_get();