Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update gt, gte, lt and lte validators to handle DateTimes compared to the time.Now().UTC() #11

Closed
deankarn opened this issue Mar 10, 2015 · 1 comment
Assignees
Labels
Milestone

Comments

@deankarn
Copy link
Contributor

There are too many variables to take into account for passing in a time to be validated against or doing anything other than UTC time without creating a custom function for your particular application.

Dates should be stored within the database as UTC, if anyone disagrees they'll have write your own validation function to handle your specific scenario.

@deankarn deankarn added the new label Mar 10, 2015
@deankarn deankarn self-assigned this Mar 10, 2015
@deankarn deankarn added this to the V2 Updates milestone Mar 10, 2015
deankarn pushed a commit that referenced this issue Mar 10, 2015
update gt, gte, lt and let to handle dates compared to time.Now().UTC()
fairyhunter13 added a commit to fairyhunter13/validator that referenced this issue Jul 12, 2020
update gt, gte, lt and let to handle dates compared to time.Now().UTC()
@birdycn
Copy link

birdycn commented Mar 13, 2021

how use bro?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants