inmite / android-validation-komensky

A simple library for validating user input in forms using annotations.
Apache License 2.0
508 stars 78 forks source link

Change Calendar.HOUR to Calendar.HOUR_OF_DAY #37

Closed douglasjunior closed 9 years ago

douglasjunior commented 9 years ago

Because in regions where it works with 24h, using cal.set(Calendar.HOUR, 0) can happen to set as 12AM instead of 12PM.

Like this:

I/System.out﹕ Tue Aug 25 12:00:00 BRT 2015

The correct would be:

I/System.out﹕ Tue Aug 25 00:00:00 BRT 2015
douglasjunior commented 9 years ago

Because the library be no new updates, I published the fix in jitpack.io.

See my fork https://github.com/douglasjunior/android-validation-komensky

douglasjunior commented 9 years ago

Thanks :smile:

tomas-vondracek commented 9 years ago

Thank you @douglasjunior for fixing this bug, that has been there for so long unnoticed :)