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
-
Component/s: Drupal Integration Modules
-
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.