aboutsummaryrefslogtreecommitdiffstats
path: root/view/profile_advanced.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-11 04:32:50 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-11 04:32:50 -0700
commit53ac7983f1c20ae84d2f153047baaa6b631fd8f8 (patch)
treea013b6333114bc97b24646afdcceebdb3336a41e /view/profile_advanced.php
parent751bc378fa181aeb6f6a25cda6646ef4395de61c (diff)
downloadvolse-hubzilla-53ac7983f1c20ae84d2f153047baaa6b631fd8f8.tar.gz
volse-hubzilla-53ac7983f1c20ae84d2f153047baaa6b631fd8f8.tar.bz2
volse-hubzilla-53ac7983f1c20ae84d2f153047baaa6b631fd8f8.zip
cleanup after deploy
Diffstat (limited to 'view/profile_advanced.php')
-rw-r--r--view/profile_advanced.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/view/profile_advanced.php b/view/profile_advanced.php
index b36e33582..78053fe0b 100644
--- a/view/profile_advanced.php
+++ b/view/profile_advanced.php
@@ -34,10 +34,13 @@ $o .= <<< EOT
<div id="advanced-profile-dob-wrapper" >
<div id="advanced-profile-dob-text">Birthday:</div>
EOT;
+
+// If no year, add an arbitrary one so just we can parse the month and day.
+
$o .= '<div id="advanced-profile-dob">'
. ((intval($a->profile['dob']))
? datetime_convert('UTC',date_default_timezone_get(),$a->profile['dob'],'j F, Y')
- : datetime_convert('UTC',date_default_timezone_get(),substr($a->profile['dob'],6),'j F'))
+ : datetime_convert('UTC',date_default_timezone_get(),'2001-' . substr($a->profile['dob'],6),'j F'))
. "</div>\r\n</div>";
$o .= '<div id="advanced-profile-dob-end"></div>';