From f9ea21a0836301bc21b8f1288695767cd15543ab Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Thu, 28 Jun 2007 14:55:48 +0000 Subject: fixing some bugs git-svn-id: file:///svn/phpbb/trunk@7805 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_profile_fields.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'phpBB/includes/functions_profile_fields.php') diff --git a/phpBB/includes/functions_profile_fields.php b/phpBB/includes/functions_profile_fields.php index 47d3ae03a9..7c5e39c3a7 100644 --- a/phpBB/includes/functions_profile_fields.php +++ b/phpBB/includes/functions_profile_fields.php @@ -469,8 +469,8 @@ class custom_profile // case 'datetime': case 'date': $date = explode('-', $value); - $month = (isset($date[0])) ? (int) $date[0] : 0; - $day = (isset($date[1])) ? (int) $date[1] : 0; + $day = (isset($date[0])) ? (int) $date[0] : 0; + $month = (isset($date[1])) ? (int) $date[1] : 0; $year = (isset($date[2])) ? (int) $date[2] : 0; if (!$day && !$month && !$year) @@ -479,7 +479,8 @@ class custom_profile } else if ($day && $month && $year) { - return sprintf('%4d-%02d-%02d', $year, $month, $day); + global $user; + return $user->format_date(mktime(0, 0, 0, $month, $day, $year), $user->lang['DATE_FORMAT'], true); } return $value; -- cgit v1.2.1 value='distro/mes5-2.6.33'>distro/mes5-2.6.33 Mageia Installer and base platform for many utilitiesThierry Vignaud [tv]
summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/icons/verti.png
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2002-08-01 10:14:49 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2002-08-01 10:14:49 +0000
commitdf815dd1334508c271cf17e6849dc10f08c292c8 (patch)
tree1eef45d6e88ce7c6da181a16e2e3193c603a8764 /perl-install/standalone/icons/verti.png
parentb4de162ca2747d54f991932f06da4603f49eb141 (diff)
downloaddrakx-df815dd1334508c271cf17e6849dc10f08c292c8.tar
drakx-df815dd1334508c271cf17e6849dc10f08c292c8.tar.gz
drakx-df815dd1334508c271cf17e6849dc10f08c292c8.tar.bz2
drakx-df815dd1334508c271cf17e6849dc10f08c292c8.tar.xz
drakx-df815dd1334508c271cf17e6849dc10f08c292c8.zip
export license