public function NodeRegistrationNodeSettings::site_utc in Node registration 7
Helper to get the node date's UTC via the site timezone.
3 calls to NodeRegistrationNodeSettings::site_utc()
- NodeRegistrationNodeSettings::max_cancel_time_passed in includes/
node_registration.node_settings.inc - Whether the maximum cancellation time for this event has passed.
- NodeRegistrationNodeSettings::max_registration_time in includes/
node_registration.node_settings.inc - Retrieves the maximum registration time for this event.
- NodeRegistrationNodeSettings::reminder_time_passed in includes/
node_registration.node_settings.inc - Whether the reminder time for this event has passed.
File
- includes/
node_registration.node_settings.inc, line 117 - Node settings class.
Class
- NodeRegistrationNodeSettings
- Node settings class.
Code
public function site_utc() {
return $this
->_cache(__FUNCTION__, function ($settings) {
return $settings
->time_from_date_field($settings->date_field);
});
}