adzap / validates_timeliness

Date and time validation plugin for ActiveModel and Rails. Supports multiple ORMs and allows custom date/time formats.
MIT License
1.59k stars 227 forks source link

Junk string passes validates_datetime #139

Closed bparanj closed 8 years ago

bparanj commented 8 years ago

If I enter text for a datetime field, it passes validation. By some miracle it sets the field to "2016-06-01 00:00:00".

adzap commented 8 years ago

Do you have parser enabled in the initialiser?

On 19 Mar 2016, at 9:32 AM, Bala Paranj notifications@github.com wrote:

If I enter text for a datetime field, it passes validation. By some miracle it sets the field to "2016-06-01 00:00:00".

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub