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

Request: Ability to easily configure the "clearTime" settings #227

Open
rbairwell opened this issue Oct 31, 2014 · 1 comment
Open

Request: Ability to easily configure the "clearTime" settings #227

rbairwell opened this issue Oct 31, 2014 · 1 comment

Comments

@rbairwell
Copy link

In the project I'm working on, we have a requirement for people to be able to enter date/times such as "tomorrow" so DateJSevolved is perfect. However, "tomorrow" means 0000 which is tonight/tomorrow morning - our users expect it to be "end of" tomorrow night/day-following morning. I've "patched" this by setting $P.clearTime to use this.setHours(23); this.setMinutes(59); this.setSeconds(59) - however, I'll much prefer to not have to change the core code.

Could you amend it so we can, optionally, pass in a "midnight/clearTime" date (or specify "use start of day"/"use end of day" if no time is specified).

Thanks!

@abritinthebay
Copy link
Owner

Interesting. I'll see how that would affect other things but I can see that being a config flag.

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

No branches or pull requests

2 participants