Skip to content

Commit 5aa88ee

Browse files
committed
Seconds Calculation changed
toSeconds() changed to -> toMillis() / 1000
1 parent b20241b commit 5aa88ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/clock_panel/TimerPanel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public void update() {
159159
duration = duration.minusHours(hours); //subtracts the hour value from duration
160160
minutes = duration.toMinutes(); //gets the amount of minutes from duration
161161
duration = duration.minusMinutes(minutes); //subtracts the minutes value from duration
162-
seconds = duration.toSeconds(); //gets the amount of seconds from duration
162+
seconds = duration.toMillis() / 1000; //gets the amount of seconds from duration
163163
}
164164

165165

0 commit comments

Comments
 (0)