function friendly_timezone

7.x misc.inc friendly_timezone($str)
6.x misc.inc friendly_timezone($str)

Returns back the "friendly" timezone string if we have one.

5 calls to friendly_timezone()
calendar_appointment_content_form_validate in modules/calendar/calendar.module
Custom validate handler for when we save an appointment form. We want to confirm the student is valid, and also store ONLY the cwid.
calendar_display_schedule_appointment_page in modules/calendar/calendar.module
This is the page which lets students schedule an appointment with the faculty member supplied in the user_id.
calendar_display_user_appointment_settings_page in modules/calendar/calendar.module
This page is where the user can configure their various appointment settings (like when they offer them)
calendar_schedule_appointment_confirm_form in modules/calendar/calendar.module
The confirmation form the user will see once they have made their schedule selections.
calendar_schedule_appointment_confirm_form_submit in modules/calendar/calendar.module
We passed validation, it's time to actually submit now!

File

includes/misc.inc, line 12
This file contains misc functions for FlightPath

Code

function friendly_timezone($str) {

  $arr = array(
    'America/Chicago' => 'Central Time - US & Canada',
    'America/Los_Angeles' => 'Pacific Time - US & Canada',
    'America/New_York' => 'Eastern Time - US & Canada',
    'America/Denver' => 'Mountain Time - US & Canada',
    'America/Phoenix' => 'Arizona Time',
    'America/Anchorage' => 'Alaska Time',
    'America/Adak' => 'Hawaii Time',
    'Pacific/Honolulu' => 'Hawaii Time no DST',
  );


  if (isset($arr [$str])) {
    return $arr [$str];
  }

  return $str;


}