Checking for the $CFG->timezone value as a last resort in the various user date/time functions didn't work because there was no global $CFG; :O
Checking for the $CFG->timezone value as a last resort in the various user
date/time functions didn't work because there was no global $CFG; :O

dilawar/moodle