DateTimeEditor in Backend button "Today" breaks "minuteStep"

A ContentElement has a DateTime property that is set to “minuteStep: 5”. As it would be the default, anyway.

If a user clicks in the Neos Backend on the “Today” button, the Time is set to whatever time it is. For example: 17:42. Problem now is, that the user can only add or remove 5 minute steps. He can never click back to i.e. 17:40. He would end up with 17:37.

That just breaks the idea of “minuteStep” completely.

A nice solution would be to either “round” to the minutes.
OR an even better solution would be to type in or change the date/time as string in the original field…?

Hi @many,

thanks for your report :slight_smile:

There’s an issue in the neos-ui repository for this one:

It seems I messed up, because it’s apparently assigned to me as of right now, but it slipped passed me :sweat_smile:

Anyway, I’m favoring your idea for a bugfix that would target 8.3:

A nice solution would be to either “round” to the minutes.

Additionally I’m also considering a complete overhaul of the DateTime editor, which would allow for your other idea:

OR an even better solution would be to type in or change the date/time as string in the original field…

That one however would only be available for 9.x and above.

I can’t say when I come around to implementing the fix for 8.3 (maybe at the sprint in march). If you (or anyone else) would like to attempt a fix before that, feel free to open a PR :slight_smile:

1 Like