OpenDataCapture icon indicating copy to clipboard operation
OpenDataCapture copied to clipboard

Retrospective sessions should allow DateTime entry

Open gdevenyi opened this issue 1 year ago • 3 comments

Our native datatype is a DateTime object, we should allow retrospective DateTime specification.

My suspicion is the API call supports DateTime but the frontend doesn't expose a time component.

This is useful for MouseODC (and probably human stuff) because the time-of-day is a proxy for hormonal variation.

gdevenyi avatar Nov 06 '24 18:11 gdevenyi

Proposed Solution Allow for an optional input box or selected field to be revealed (hour and minutes) when the user selects a retrospective session in the form. Thus allowing them to put the time of day if needed.

david-roper avatar Dec 09 '24 20:12 david-roper

Allow for an optional input box or selected field to be revealed (hour and minutes) when the user selects a retrospective session in the form. Thus allowing them to put the time of day if needed.

Yes, except I believe the existing data structures are using a single DateTime like object for the Date entry right now, so merging the two entries together might be tricky. I was more thinking about a single input function which handles both.

gdevenyi avatar Dec 11 '24 17:12 gdevenyi

Yes, it is indeed possible to input the exact time of day, but there is no UI component for this at the moment. David's solution would work, but it is a bit cumbersome. @david-roper could you try implementing a clock component in libui?

joshunrau avatar Dec 14 '24 16:12 joshunrau