Skip to content
Snippets Groups Projects
Commit 58f5f3a8 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

Fixed #20 - add time manually: prefill start time with current time too

parent 3121c335
Branches
Tags
No related merge requests found
...@@ -228,6 +228,9 @@ public class InsertTimeController ...@@ -228,6 +228,9 @@ public class InsertTimeController
public void useCurrentTime() public void useCurrentTime()
{ {
LocalDateTime now = LocalDateTime.now(); LocalDateTime now = LocalDateTime.now();
timePicker1Controller.setTime(now.getHour(), now.getMinute() - 1, 0);
timePicker1Controller.init();
timePicker2Controller.setTime(now.getHour(), now.getMinute(), now.getSecond()); timePicker2Controller.setTime(now.getHour(), now.getMinute(), now.getSecond());
timePicker2Controller.init(); timePicker2Controller.init();
setLabelDuration(); setLabelDuration();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment