timezone_name)) { return $user->timezone_name; } else { return variable_get('date_default_timezone_name', ''); } } /** * Implementation of hook_simpletest(). */ function date_api_simpletest() { $dir = drupal_get_path('module', 'date_api') .'/tests'; $tests = file_scan_directory($dir, '\.test$'); return array_keys($tests); }