From 70e53ff816ff1aabd345824ea9f93c422e51277f Mon Sep 17 00:00:00 2001 From: Brahim Arkni Date: Thu, 15 Feb 2018 23:46:16 +0000 Subject: [PATCH] Entries: Add deprecation warning to date method Ref jquery-validation/jquery-validation#1787 --- entries/date-method.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/entries/date-method.xml b/entries/date-method.xml index bdeaa86..4d2285b 100644 --- a/entries/date-method.xml +++ b/entries/date-method.xml @@ -1,10 +1,11 @@ - date method + [DEPRECATED] date method Makes the element require a date. Return true if the value is a valid date. Uses JavaScript's built-in Date to test if the date is valid, and therefore does no sanity checks. Only the format must be valid, not the actual date, eg 30/30/2008 is a valid date. -

This method should not be used, since it relies on the new Date constructor, which behaves very differently across browsers and locales. Use dateISO instead or one of the locale specific methods (in localizations/ and additional-methods.js).

+

DEPRECATION warning:

+

This method is deprecated and will be removed in version 2.0.0.
Please don't use it, since it relies on the Date constructor, which behaves very differently across browsers and locales. Use dateISO instead or one of the locale specific methods (in localizations/ and additional-methods.js).

Makes "field" required and a date.