How do I add Seconds to a Time Picker in Umbraco 10?
Hi,
I'm upgrading an old site from Umbraco 7 to 10. On the old site I have a data type for setting a time in hours, minutes and seconds. It's using the Date/Time property editor and a date format of "HH:mm:ss".
When I click into the field when editing content it gives a calendar by default, but I can click the clock icon to select hours, minutes and seconds. Alternatively I can just type e.g. "1:23:45" into the field and it accepts this.
In Umbraco 10 I've set up the data type the same way, but it behaves differently. It doesn't show a calendar at all but goes straight to a time picker with only hours and minutes. It's not possible to type into the field (as soon as you click it, it displays the time picker and sets focus to the hour element). I can't find any way of setting the seconds.
I've found that in a pinch I can use a Textstring data type and then DateTime.Parse it when I actually use it, but it would be nice to get a working time picker in the Umbraco UI.
How do I add Seconds to a Time Picker in Umbraco 10?
Hi,
I'm upgrading an old site from Umbraco 7 to 10. On the old site I have a data type for setting a time in hours, minutes and seconds. It's using the Date/Time property editor and a date format of "HH:mm:ss".
When I click into the field when editing content it gives a calendar by default, but I can click the clock icon to select hours, minutes and seconds. Alternatively I can just type e.g. "1:23:45" into the field and it accepts this.
In Umbraco 10 I've set up the data type the same way, but it behaves differently. It doesn't show a calendar at all but goes straight to a time picker with only hours and minutes. It's not possible to type into the field (as soon as you click it, it displays the time picker and sets focus to the hour element). I can't find any way of setting the seconds.
What have I missed? :)
Check your datatype configuration, my setup has 2 datatypes for date picker - one with time and one without.
Correct, but neither of those default data types allow me to enter seconds. Do they work for you?
I've found that in a pinch I can use a Textstring data type and then DateTime.Parse it when I actually use it, but it would be nice to get a working time picker in the Umbraco UI.
I'm bumping up this question. I hope someone can help.
is working on a reply...