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

Remove Current Date from Time Picker #263

Open
victorhalla opened this issue Mar 3, 2017 · 1 comment
Open

Remove Current Date from Time Picker #263

victorhalla opened this issue Mar 3, 2017 · 1 comment

Comments

@victorhalla
Copy link

Hello,

I have a date column where it can be null. The problem is that when adding a new register it always bring me the current date, so if the user did not clean it will save the current date.

I already tried to change the model script to remove this column from new Date() to null or even '' but without success ! Could you help me?

@stevetx30
Copy link
Contributor

I found it better to clean it up in PHP if null from DB you can set to '0000-00-00' and the picker would not show a date and model. Otherwise you can set in model on save to "0000-00-00" if empty otherwise it might set to '1970-01-01'

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