You are here

function date_php4_settings_form in Date 6.2

Same name and namespace in other branches
  1. 5.2 date_php4/date_php4.module \date_php4_settings_form()

Timezone handling.

1 string reference to 'date_php4_settings_form'
date_php4_menu in date_php4/date_php4.module
Implementation of hook_menu().

File

date_php4/date_php4.module, line 42

Code

function date_php4_settings_form() {
  drupal_set_title(t('Date PHP4 Settings'));
  $form['date_use_server_zone'] = array(
    '#type' => 'select',
    '#options' => array(
      TRUE,
      t('TRUE'),
      FALSE => t('FALSE'),
    ),
    '#default_value' => variable_get('date_use_server_zone', FALSE),
    '#title' => t('Use PHP default timezone'),
    '#description' => t('Getting date computations working correctly in PHP versions earlier than PHP 5.2 involves extra computations that add a lot of overhead. These computations are needed because the timezone PHP uses on date computations may not match the site or user timezone or other date-specific timezones. We can speed processing up if we assume that PHP is using the correct timezone, but need to do more time-intensive processing if it is not. If timezone adjustments do not seem to be working correctly in your setup, you can set this option to FALSE to force the system to use the more accurate, but slower, timezone computations.'),
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Save'),
  );
  return $form;
}