mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
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
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user