Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-9433

Birthday Convert

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • None
    • 3.0.x
    • phpBB 2.0 convertor
    • None
    • PHP Environment:
      Database:

      After converting the the day and month swapped.

      Solved by change in functions_phpbb20.php the string:

      		// The birthday mod from niels is using this code to transform to day/month/year
      		return sprintf('%2d-%2d-%4d', gmdate('n', $birthday * 86400 + 1), gmdate('j', $birthday * 86400 + 1), gmdate('Y', $birthday * 86400 + 1));

      to:

      		// The birthday mod from niels is using this code to transform to day/month/year
      		return sprintf('%2d-%2d-%4d', gmdate('j', $birthday * 86400 + 1), gmdate('n', $birthday * 86400 + 1), gmdate('Y', $birthday * 86400 + 1));

            ToonArmy Chris Smith
            nissin nissin [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: