aboutsummaryrefslogtreecommitdiffstats
path: root/include/datetime.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-02-28 21:39:52 -0800
committerzotlabs <mike@macgirvin.com>2018-02-28 21:39:52 -0800
commit6210b7727f6c8542daaa62d1ed7f9ec1f74323f2 (patch)
tree129a67cbed69c4ed6f286e9a0bf3770b9c82ffc6 /include/datetime.php
parent01015bc0d54343831189ce1b09a69b70a6371fd5 (diff)
downloadvolse-hubzilla-6210b7727f6c8542daaa62d1ed7f9ec1f74323f2.tar.gz
volse-hubzilla-6210b7727f6c8542daaa62d1ed7f9ec1f74323f2.tar.bz2
volse-hubzilla-6210b7727f6c8542daaa62d1ed7f9ec1f74323f2.zip
profile edit: empty dob is set to the date of the first profile save unless you clear it first
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 1e9a1fa51..766c90d16 100644
--- a/include/datetime.php
+++ b/include/datetime.php
@@ -125,7 +125,7 @@ function datetime_convert($from = 'UTC', $to = 'UTC', $s = 'now', $fmt = "Y-m-d
*/
function dob($dob) {
- if ($dob === '0000-00-00')
+ if ($dob === '0000-00-00' || $dob === '')
$value = '';
else
$value = (($year) ? datetime_convert('UTC','UTC',$dob,'Y-m-d') : datetime_convert('UTC','UTC',$dob,'m-d'));