Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-9433

Birthday Convert

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Resolution: Fixed
    • Affects Version/s: 3.0.x
    • Fix Version/s: None
    • Component/s: phpBB 2.0 convertor
    • Labels:
      None
    • Environment:
      PHP Environment:
      Database:

      Description

      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));

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: