For some reason I cannot figure out, the display of the times of a date field is incorrect. The field input is 17:30 and 19:00 but the display is "17 to 19:04" (see attached screenshots).

This also happens when I disable the date repeat.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

vijaycs85’s picture

Issue tags: +triage

Let's triage this issue.

Yvonne_Federowicz’s picture

Somewhat related...

Be sure you know what date field attributes you are collecting...

Under "Field Settings":
Date attributes to collect
Year Month Day Hour Minute Second
(checkboxes)

In a case where Year, Month, Day, Hour are the only date field data being collected:

Using the popup calendar widget breaks data updates or entries; this widget automatically inserts & requires a date with minutes in that box. Then the update is always rejected per my second image, because the hour format required for form submission is a simple number like "17" with no minutes. So the update has to be abandoned once you touch the data in that date field (or use the calendar to enter it.)

The MySQL date column for this field has a regular time format including minutes and seconds, seems in GMT.
2014-04-12 21:00:00

(I'm in the eastern U.S. for time zone; 21:00 in GMT should be 17:00 eastern daylight time, U.S.)

Yvonne_Federowicz’s picture

yan’s picture

Status: Active » Closed (fixed)
Issue tags: -triage

It seems there was a problem with the date format setting. In the field display settings (at admin/structure/types/manage/[nodetype]/display) the time was also displayed incorrectly. I then changed the format at admin/config/regional/date-time and the error disappeared.