diff --git a/updates.sql b/updates.sql index b7e2ab3ea4..af3ab3e1a2 100644 --- a/updates.sql +++ b/updates.sql @@ -1,5 +1,5 @@ -|ALTER TABLE `item` ADD `remote-id` CHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `contact-id` ; +-- ALTER TABLE `item` ADD `remote-id` CHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `contact-id` ; ALTER TABLE `profile` ADD `politic` CHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `marital` , ADD `religion` CHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `politic` ; diff --git a/view/profile_advanced.php b/view/profile_advanced.php index b36e335828..78053fe0b5 100644 --- a/view/profile_advanced.php +++ b/view/profile_advanced.php @@ -34,10 +34,13 @@ $o .= <<< EOT
Birthday:
EOT; + +// If no year, add an arbitrary one so just we can parse the month and day. + $o .= '
' . ((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')) . "
\r\n
"; $o .= '
';