setlocale() and date_default_timezone_set() in config.inc.php now dependant on MODX_API_MODE being unset or false.