diff --git a/app/src/main/java/com/eveningoutpost/dexdrip/Home.java b/app/src/main/java/com/eveningoutpost/dexdrip/Home.java index 87baaab86e..11cda7ed55 100644 --- a/app/src/main/java/com/eveningoutpost/dexdrip/Home.java +++ b/app/src/main/java/com/eveningoutpost/dexdrip/Home.java @@ -959,7 +959,7 @@ private void handleWordPair() { case "time": Log.d(TAG, "processing time keyword"); - if ((timeset == false) && (thisnumber > 0)) { + if ((timeset == false) && (thisnumber >= 0)) { final NumberFormat nf = NumberFormat.getNumberInstance(Locale.US); final DecimalFormat df = (DecimalFormat)nf; @@ -974,7 +974,7 @@ private void handleWordPair() { final SimpleDateFormat simpleDateFormat1 = new SimpleDateFormat("dd/M/yyyy ",Locale.US); final SimpleDateFormat simpleDateFormat2 = - new SimpleDateFormat("dd/M/yyyy hh.mm",Locale.US); // TODO double check 24 hour 12.00 etc + new SimpleDateFormat("dd/M/yyyy HH.mm",Locale.US); // TODO double check 24 hour 12.00 etc final String datenew = simpleDateFormat1.format(c.getTime()) + df.format(thisnumber); Log.d(TAG, "Time Timing data datenew: " + datenew);