Browse Source

fix birthday

pull/1/head
Mike Macgirvin 11 years ago
parent
commit
c34189c033
  1. 2
      include/datetime.php

2
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();

Loading…
Cancel
Save