On google chrome the input type="date" will display as a date input control, but the control's date format is MM/dd/yyyy, and can't change.
So when I click "Save and publish" to create a new node, drupal will display a error for the "Authored on" date field.

Attach file is the screen capture.

My Chrome version is 31.0.1650.63.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

harryzhxu’s picture

Issue summary: View changes
sidharthap’s picture

FileSize
158.85 KB

I test it on Version 31.0.1650.63 Ubuntu 12.04 and could not replicate the same.

tarekdj’s picture

Tested on Version 31.0.1650.63 win 7. It works without problem.
Update:
If you want to reproduce this, remove all values from time filed (only time filed). But I think it makes sense because if you want to use the time of form submission you have to empty the date field too.

swentel’s picture

Component: node system » datetime.module
tarekdj’s picture

Status: Active » Needs review
FileSize
1.57 KB

So here is a patch. Basically it empty time input when date input is empty and vise versa.

Status: Needs review » Needs work

The last submitted patch, 5: drupal-core-datetime-2159345-5.patch, failed testing.

tarekdj’s picture

Well! seems not to be the best solution for that.

swentel’s picture

Yeah, the javascript is not going to fire in the testbot. This might be a duplicate of #2031183: Improve test coverage for node authored on widget, but I'll leave it open for now.

vijaycs85’s picture

Status: Needs work » Closed (works as designed)

Ok, the date/time element is HTML 5 element and has different display in different browser. Don't see any issue with datetime module for this. The author field issue(#2031183: Improve test coverage for node authored on widget) seems different one. So closing this for now.

vijaycs85’s picture