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

Time not showing in datetime field when using current date and no time picker #882

Closed
plauclair opened this issue Jan 26, 2015 · 2 comments
Labels

Comments

@plauclair
Copy link

I was helping someone on the forum when we discovered something.

When you:

  • create a datetime field,
  • choose time formats in Details and Input tabs,
  • check the Default to today's date option,
  • don't use a datetime picker;

The value created doesn't seem to hold the time (only shows YYYY-MM-DD). When you do use a datetime picker, the value shows up as it's supposed to.

@plauclair
Copy link
Author

Looking at the source, in InputDatetime.module (line 92 onwards), $useTime is set to false and must pass if($this->datepicker) to ever be set to true. Is that the intended behaviour?

@ryancramerdesign
Copy link
Owner

Nope that's not the intended behavior. Thanks for letting me know. I have fixed locally and it will appear in today's commits.

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