diff --git a/date_api/date_api.module b/date_api/date_api.module index 49b49e3c..019f9163 100644 --- a/date_api/date_api.module +++ b/date_api/date_api.module @@ -2653,7 +2653,7 @@ function date_get_timezone($handling, $timezone = '') { $timezone = !empty($timezone) ? $timezone : date_default_timezone(); break; - case ('none'): + case 'none': case 'utc': $timezone = 'UTC'; break; @@ -2678,15 +2678,15 @@ function date_get_timezone($handling, $timezone = '') { */ function date_get_timezone_db($handling, $timezone = NULL) { switch ($handling) { - case ('utc'): - case ('site'): - case ('user'): - case ('none'): + case 'utc': + case 'site': + case 'user': + case 'none': // These handling modes all convert to UTC before storing in the DB. $timezone = 'UTC'; break; - case ('date'): + case 'date': if ($timezone == NULL) { // This shouldn't happen, since it's meaning is undefined. But we need // to fall back to *something* that's a legal timezone.