aboutsummaryrefslogtreecommitdiffstats
path: root/include/datetime.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-11 04:54:39 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-11 04:54:39 -0700
commitc34189c033480f874fd61269d6a1c5a3306c0e3e (patch)
tree926b0a42ac4a333b5d21ebd742d8bfc179124495 /include/datetime.php
parentaeac832728eb898bfaa0bcc234093ab3ca0eff17 (diff)
downloadvolse-hubzilla-c34189c033480f874fd61269d6a1c5a3306c0e3e.tar.gz
volse-hubzilla-c34189c033480f874fd61269d6a1c5a3306c0e3e.tar.bz2
volse-hubzilla-c34189c033480f874fd61269d6a1c5a3306c0e3e.zip
fix birthday
Diffstat (limited to 'include/datetime.php')
-rw-r--r--include/datetime.php2
1 files changed, 1 insertions, 1 deletions
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();