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

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

    Details

    • Type: Improvement
    • Status: Unverified Fix
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.9-RC2
    • Fix Version/s: 3.0.10-RC1
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: