diff --git a/htdocs/core/boxes/box_birthdays.php b/htdocs/core/boxes/box_birthdays.php
index 62cfaa590ab..02c39c2f625 100644
--- a/htdocs/core/boxes/box_birthdays.php
+++ b/htdocs/core/boxes/box_birthdays.php
@@ -119,7 +119,7 @@ class box_birthdays extends ModeleBoxes
$this->info_box_contents[$line][] = array(
'td' => 'class="center nowraponall"',
- 'text' => dol_print_date($dateb, "day", 'gmt').' - '.$age.' '.$langs->trans('DurationYears')
+ 'text' => dol_print_date($dateb, "day", 'tzserver').' - '.$age.' '.$langs->trans('DurationYears')
);
/*$this->info_box_contents[$line][] = array(
diff --git a/htdocs/user/card.php b/htdocs/user/card.php
index 23437a7564c..ebb001e6ca9 100644
--- a/htdocs/user/card.php
+++ b/htdocs/user/card.php
@@ -1255,7 +1255,7 @@ if ($action == 'create' || $action == 'adduserldap') {
// Date birth
print '
| '.$langs->trans("DateOfBirth").' | ';
print '';
- print $form->selectDate($dateofbirth, 'dateofbirth', 0, 0, 1, 'createuser', 1, 0);
+ print $form->selectDate($dateofbirth, 'dateofbirth', 0, 0, 1, 'createuser', 1, 0, 0, '', 0, '', '', 1, '', '', 'tzserver');
print ' | ';
print "
\n";
@@ -1565,7 +1565,7 @@ if ($action == 'create' || $action == 'adduserldap') {
// Date of birth
print '| '.$langs->trans("DateOfBirth").' | ';
print '';
- print dol_print_date($object->birth, 'day');
+ print dol_print_date($object->birth, 'day', 'tzserver');
print ' | ';
print "
\n";
@@ -2712,9 +2712,9 @@ if ($action == 'create' || $action == 'adduserldap') {
print '| '.$langs->trans("DateOfBirth").' | ';
print '';
if ($caneditfield) {
- echo $form->selectDate($dateofbirth ? $dateofbirth : $object->birth, 'dateofbirth', 0, 0, 1, 'updateuser', 1, 0);
+ echo $form->selectDate($dateofbirth ? $dateofbirth : $object->birth, 'dateofbirth', 0, 0, 1, 'updateuser', 1, 0, 0, '', '', '', '', 1, '', '', 'tzserver');
} else {
- print dol_print_date($object->birth, 'day');
+ print dol_print_date($object->birth, 'day', 'tzserver');
}
print ' | ';
print "
\n";
diff --git a/htdocs/user/class/user.class.php b/htdocs/user/class/user.class.php
index 2b284f6878e..04eebd6b6c9 100644
--- a/htdocs/user/class/user.class.php
+++ b/htdocs/user/class/user.class.php
@@ -1731,7 +1731,7 @@ class User extends CommonObject
$sql .= ", login = '".$this->db->escape($this->login)."'";
$sql .= ", api_key = ".($this->api_key ? "'".$this->db->escape($this->api_key)."'" : "null");
$sql .= ", gender = ".($this->gender != -1 ? "'".$this->db->escape($this->gender)."'" : "null"); // 'man' or 'woman'
- $sql .= ", birth=".(strval($this->birth) != '' ? "'".$this->db->idate($this->birth)."'" : 'null');
+ $sql .= ", birth=".(strval($this->birth) != '' ? "'".$this->db->idate($this->birth, 'tzserver')."'" : 'null');
if (!empty($user->admin)) {
$sql .= ", admin = ".(int) $this->admin; // admin flag can be set/unset only by an admin user
}