function date_timezone_convert in Date 6
Helper function to determine if any timezone conversion should be done on this field.
4 calls to date_timezone_convert()
- date_combo_validate in date/
date_elements.inc - Validate and update a combo element. Don't try this if there were errors before reaching this point.
- date_formatter_process in date/
date.module - Helper function for creating formatted date arrays from a formatter.
- date_local_date in date/
date_elements.inc - Create local date object.
- _date_repeat_widget_validate in date/
date_repeat.inc - Validation for date repeat form element.
File
- date/
date.module, line 274 - Defines date/time field types for the Content Construction Kit (CCK).
Code
function date_timezone_convert($field, $item = array()) {
if ($field['tz_handling'] == 'none' || !in_array('hour', date_granularity($field)) || $field['tz_handling'] == 'date' && empty($item['timezone'])) {
return FALSE;
}
return TRUE;
}