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

Add gmgetdate() wrapper for getdate() which returns dates in UTC.

    XMLWordPrintable

Details

    • Improvement
    • Status: Unverified Fix (View Workflow)
    • Minor
    • Resolution: Fixed
    • 3.0.9-RC2
    • 3.0.10-RC1
    • None
    • None

    Description

      We often use

      $now = getdate(time() + $user->timezone + $user->dst - date('Z'));
      

      which relies on a trick that getdate() and date('Z') balances to UTC.

      This is nowhere documented and similar statements are used multiple times. So a wrapper should be created with appropriate comments.

      Attachments

        Activity

          People

            bantu Andreas Fischer
            bantu Andreas Fischer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: