Skip to content

Commit

Permalink
MDL-42808 library: Google API was resetting the timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Massart committed Nov 11, 2013
1 parent f845946 commit 7c9753a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/google/Google_Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
}

if (! ini_get('date.timezone') && function_exists('date_default_timezone_set')) {
date_default_timezone_set('UTC');
// Library hack. See MDL-42808.
// date_default_timezone_set('UTC');
}

// hack around with the include paths a bit so the library 'just works'
Expand Down
6 changes: 6 additions & 0 deletions lib/google/readme_moodle.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ that was that we could force Google lib to use our implementation of curl.
If you upgrade the library, please check if the method Google_CurlIO::makeRequest()
has been updated and would require change in moodle_google_curlio.

Library hack
------------

* The file Google_Client.php resets the timezone to UTC. The line
date_default_timezone_set('UTC'); should be commented out. See MDL-42808.

Information
-----------

Expand Down

0 comments on commit 7c9753a

Please sign in to comment.