diff options
author | Chris Smith <toonarmy@phpbb.com> | 2008-10-11 19:01:17 +0000 |
---|---|---|
committer | Chris Smith <toonarmy@phpbb.com> | 2008-10-11 19:01:17 +0000 |
commit | 1d616b810455e2f3b3f144b731a7f2d845e9b904 (patch) | |
tree | 07120afc812b33c3e40dba65a82cc4bd861f1f74 /phpBB/install/convertors/functions_phpbb20.php | |
parent | b588a36a220fa5e2a67e1169ee93100200cc735f (diff) | |
download | forums-1d616b810455e2f3b3f144b731a7f2d845e9b904.tar forums-1d616b810455e2f3b3f144b731a7f2d845e9b904.tar.gz forums-1d616b810455e2f3b3f144b731a7f2d845e9b904.tar.bz2 forums-1d616b810455e2f3b3f144b731a7f2d845e9b904.tar.xz forums-1d616b810455e2f3b3f144b731a7f2d845e9b904.zip |
Correctly convert Neil's Birthday MOD to the date format used in phpBB3. #32895
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9005 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/install/convertors/functions_phpbb20.php')
-rw-r--r-- | phpBB/install/convertors/functions_phpbb20.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/install/convertors/functions_phpbb20.php b/phpBB/install/convertors/functions_phpbb20.php index 8de647e4db..0acf666312 100644 --- a/phpBB/install/convertors/functions_phpbb20.php +++ b/phpBB/install/convertors/functions_phpbb20.php @@ -461,7 +461,7 @@ function phpbb_get_birthday($birthday = '') } // The birthday mod from niels is using this code to transform to day/month/year - return gmdate('d-m-Y', $birthday * 86400 + 1); + return sprintf('%2d-%2d-%4d', gmdate('n', $birthday * 86400 + 1), gmdate('j', $birthday * 86400 + 1), gmdate('Y', $birthday * 86400 + 1)); } } |