Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.4.4
-
Fix Version/s: 4.6
-
Component/s: None
-
Labels:None
-
Documentation Required?:None
Description
Background: Some test results appeared different on my desktop (MAMP) and on the server (Debian/Ubuntu). After several hours of debugging, I found that the local MAMP had badly configured TZ defaults – PHP was hardcoded to Berlin time while MySQL was softcoded to system time.
We should do one or all of the following:
- Proactively, consistently manage TZ in MySQL (We currently do this for Drupal and sometimes for WordPress via CRM_Utils_System_Base::setMySQLTimeZone.)
- Warn admins if their installation misbehaves
- Warn test runners if their installation misbehaves