Page 1 of 1

Advanced work with calendar

Posted: Sat May 11, 2024 2:30 pm
by kknm
Is there any way or code to enter defaul TIME in calendar.
The company operates in two shifts - 08:00 and 20:00. To reflect all work, a timesheet is used, which can be filtered by date and time mentioned above. Unfortunately, to select a time in the calendar you have to turn the mouse wheel a lot and then stop exactly. I'm already thinking about checking the entered date-time-local, but I guess there must be an easier way to set the programmed time.

Re: Advanced work with calendar

Posted: Sat May 11, 2024 8:35 pm
by kev1n
Can you show what you mean by "to select a time in the calendar you have to turn the mouse wheel a lot and then stop exactly." ?

Re: Advanced work with calendar

Posted: Sat May 11, 2024 8:54 pm
by kknm
date-time.png
This is what the calendar selection field looks like on my form. First, the user selects the date, then the hour and then the minutes. At the moment of retaking a shift, in which events can accumulate every minute, every minute is important for the overall picture of the shift. Errors when entering the start of a shift may result in products from another shift being counted.

Re: Advanced work with calendar

Posted: Sun May 12, 2024 12:16 pm
by kev1n
The datetime-local HTML element is part of the HTML5 specification and not a native nuBuilder element.
It allows you to set a default date and time, but does not seem to provide a way to set a default value specifically for the time part alone.
(you can also search for posts on stackoverflow etc.)