Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-18318

Default to using date_timezone module if available to handle DST properly; cleanup timezone code.

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.6.14, 4.7.4
    • Fix Version/s: 4.7.7
    • Labels:
      None
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      Most Drupal 6 sites have date_api and associated modules installed. One of these is date_timezone module which helpfully switches from Drupal 6's horrible second-offset model to timezone names — thus properly taking into account daylight savings changes.

      This patch attempts to use this module if it is available so that CiviCRM doesn't get out of sync with PHP during daylight savings periods. It falls back to the old second-offset model if needed — but using code that handles 0-second offset properly and without several unused variables hanging around.

      See PR: https://github.com/civicrm/civicrm-drupal/pull/365

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              torrance123 Torrance
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: