| 388 | // ***** Endpoint for ValidatorBefore with QDateTime ****** |
| 389 | C_ATTR(beforeDateTime, :Local :AutoArgs) |
| 390 | void beforeDateTime(Context *c) |
| 391 | { |
| 392 | Validator v({new ValidatorBefore(u"before_field"_s, |
| 393 | QDateTime::currentDateTime(), |
| 394 | QString{}, |
| 395 | nullptr, |
| 396 | m_validatorMessages)}); |
| 397 | checkResponse(c, v.validate(c)); |
| 398 | } |
| 399 | |
| 400 | // ***** Endpoint for ValidatorBefore with custom format ****** |
| 401 | C_ATTR(beforeFormat, :Local :AutoArgs) |