mirror of
https://github.com/friendica/friendica
synced 2024-12-22 19:20:17 +00:00
fix birthday
This commit is contained in:
parent
aeac832728
commit
c34189c033
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue