You are here

function webform_strtotime in Webform 6.3

Same name and namespace in other branches
  1. 7.4 webform.module \webform_strtotime()
  2. 7.3 webform.module \webform_strtotime()

Get a timestamp in GMT time, ensuring timezone accuracy.

3 calls to webform_strtotime()
theme_webform_display_date in components/date.inc
Format the text output for this component.
_webform_csv_data_date in components/date.inc
Implements _webform_csv_data_component().
_webform_table_date in components/date.inc
Implements _webform_table_component().

File

./webform.module, line 3592

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;
}