Skip to content

Commit

Permalink
Change twelve hour format to use US locale to fix parsing failure
Browse files Browse the repository at this point in the history
  • Loading branch information
slavick committed Aug 13, 2023
1 parent ff75a7f commit 25c8762
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public long getNextAlarmTimeInMillis(Context context) {
}

private static class TimeStringComparator implements Comparator<String> {
private final DateFormat twelveHourFormat = new SimpleDateFormat("h:mm a", Locale.getDefault());
private final DateFormat twelveHourFormat = new SimpleDateFormat("h:mm a", Locale.US);
private final DateFormat twentyFourHourFormat = new SimpleDateFormat("H:mm", Locale.getDefault());

@Override
Expand Down

0 comments on commit 25c8762

Please sign in to comment.