mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-24 01:03:20 +02:00
fixed bug with 12am/pm and 24 hour time set
This commit is contained in:
@@ -67,7 +67,7 @@ public class TimeMeasurementView extends MeasurementView {
|
||||
Calendar source = Calendar.getInstance();
|
||||
source.setTime(time);
|
||||
|
||||
target.set(Calendar.HOUR, source.get(Calendar.HOUR));
|
||||
target.set(Calendar.HOUR_OF_DAY, source.get(Calendar.HOUR_OF_DAY));
|
||||
target.set(Calendar.MINUTE, source.get(Calendar.MINUTE));
|
||||
target.set(Calendar.SECOND, 0);
|
||||
target.set(Calendar.MILLISECOND, 0);
|
||||
|
Reference in New Issue
Block a user