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

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

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.0.10-RC1
    • 3.0.9-RC2
    • None
    • None

      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.

            bantu Andreas Fischer [X] (Inactive)
            bantu Andreas Fischer [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: