You are here

function date_timezone_handling_options in Date 6

Same name and namespace in other branches
  1. 8 date_admin.inc \date_timezone_handling_options()
  2. 8 date_field/date_field.module \date_timezone_handling_options()
  3. 5.2 date/date_admin.inc \date_timezone_handling_options()
  4. 5 date.inc \date_timezone_handling_options()
  5. 6.2 date/date_admin.inc \date_timezone_handling_options()
  6. 7.3 date_admin.inc \date_timezone_handling_options()
  7. 7 date_admin.inc \date_timezone_handling_options()
  8. 7.2 date_admin.inc \date_timezone_handling_options()

Timezone handling options

the 'none' option will do no timezone conversions and will store and display dates exactly as entered useful in locales or situations where timezone conversions are not working reliably, for dates with no times, for historical dates where timezones are irrelevant, or anytime conversion is unnecessary or undesirable

1 call to date_timezone_handling_options()
date_field_settings_form in date/date_admin.inc

File

date/date_admin.inc, line 495
Date administration code. Moved to separate file since there is a lot of code here that is not needed often.

Code

function date_timezone_handling_options() {
  return array(
    'site' => t('Site\'s time zone'),
    'date' => t('Date\'s time zone'),
    'user' => t('User\'s time zone'),
    'utc' => 'UTC',
    'none' => t('No time zone conversion'),
  );
}