function RulesDateInputEvaluator::gmstrtotime

Convert a time string to a GMT (UTC) unix timestamp.

3 calls to RulesDateInputEvaluator::gmstrtotime()
RulesDateInputEvaluator::evaluate in modules/rules_core.eval.inc
Overrides RulesDataInputEvaluator::evaluate().
RulesIntegrationTestCase::testRulesCoreIntegration in tests/rules.test
Tests the "rules_core" integration.
rules_ui_element_date_validate in ui/ui.forms.inc
FAPI validation of a date element.

File

modules/rules_core.eval.inc, line 92

Class

RulesDateInputEvaluator
A class implementing a rules input evaluator processing date input.

Code

public static function gmstrtotime($date) {
    // Pass the current timestamp in UTC to ensure the retrieved time is UTC.
    return strtotime($date, time());
}