Skip to content

Commit

Permalink
Merge pull request #37 from NightscoutFoundation/tzachi-Datefromat
Browse files Browse the repository at this point in the history
Fix use of android.text.format.DateFormat.format 'kk' represents the hours and not 'HH'.
  • Loading branch information
jamorham authored Nov 14, 2016
2 parents 43419f0 + 0406516 commit 61a692b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/com/eveningoutpost/dexdrip/Models/JoH.java
Original file line number Diff line number Diff line change
Expand Up @@ -444,11 +444,11 @@ public static String hourMinuteString() {
}

public static String hourMinuteString(long timestamp) {
return android.text.format.DateFormat.format("HH:mm", timestamp).toString();
return android.text.format.DateFormat.format("kk:mm", timestamp).toString();
}

public static String dateTimeText(long timestamp) {
return android.text.format.DateFormat.format("yyyy-MM-dd HH:mm:ss", timestamp).toString();
return android.text.format.DateFormat.format("yyyy-MM-dd kk:mm:ss", timestamp).toString();
}

public static String dateText(long timestamp) {
Expand Down

0 comments on commit 61a692b

Please sign in to comment.