protected function field_timer_jquery_countdown_datetime::getTimestamp in Field Timer 7.2
@inheritdoc
Overrides field_timer_formatter_base::getTimestamp
File
- includes/
field_timer_jquery_countdown.inc, line 571 - Help file. Contains help classes to perform field_timer_jquery_countdown formatter related actions.
Class
- field_timer_jquery_countdown_datetime
- Class for field_timer_jquery_countdown formatter and datetime field type.
Code
protected function getTimestamp($item, $field, $key = 'value') {
$timezone_db = date_get_timezone_db($field['settings']['tz_handling']);
$db_format = date_type_format($field['type']);
$date = new DateObject($item[$key], $timezone_db, $db_format);
return $date
->getTimestamp();
}