function _node_registration_strtotime_debug in Node registration 7
Returns a message for the strtotime format to show the user in admin forms.
1 call to _node_registration_strtotime_debug()
- _node_registration_type_settings_form in includes/
node_registration.forms.inc - All registration settings for registration types and nodes.
File
- includes/
node_registration.api.inc, line 30 - Registration API functions.
Code
function _node_registration_strtotime_debug($setting_value, $relative_utc = 0) {
$YMD = 'Y-m-d H:i:s';
$relative_utc or $relative_utc = REQUEST_TIME;
$relative_datetime = date('Y-m-d H:i:s', $relative_utc);
$time = _node_registration_strtotime($relative_datetime, $setting_value);
return date($YMD, $relative_utc) . ' ' . _node_registration_strtotime_format($setting_value) . ' = ' . date($YMD, $time);
}