function webform_strtotime in Webform 7.4
Same name and namespace in other branches
- 6.3 webform.module \webform_strtotime()
- 7.3 webform.module \webform_strtotime()
Get a timestamp in GMT time, ensuring timezone accuracy.
8 calls to webform_strtotime()
- theme_webform_display_date in components/
date.inc - Format the text output for this component.
- webform_conditional_operator_datetime_after in includes/
webform.conditionals.inc - Conditional callback for date and time comparisons.
- webform_conditional_operator_datetime_before in includes/
webform.conditionals.inc - Conditional callback for date and time comparisons.
- webform_conditional_operator_datetime_equal in includes/
webform.conditionals.inc - Conditional callback for date and time comparisons.
- webform_conditional_prepare_date_js in includes/
webform.conditionals.inc - Prepare a conditional value for adding as a JavaScript setting.
File
- ./
webform.module, line 5289 - This module provides a simple way to create forms and questionnaires.
Code
function webform_strtotime($date) {
$current_tz = date_default_timezone_get();
date_default_timezone_set('UTC');
$timestamp = strtotime($date);
date_default_timezone_set($current_tz);
return $timestamp;
}