|
|
@ -52,6 +52,7 @@ public class ThmmyDateTimeParser { |
|
|
|
thmmyDateTime = (new DateTime()).toString("MMMM d, Y, ") + thmmyDateTime; |
|
|
|
|
|
|
|
//Don't even ask
|
|
|
|
if(thmmyDateTime.contains("am")) |
|
|
|
thmmyDateTime = thmmyDateTime.replaceAll("\\s00:"," 12:"); |
|
|
|
|
|
|
|
// For the stupid format 23:54:12 pm
|
|
|
@ -77,7 +78,10 @@ public class ThmmyDateTimeParser { |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|
return Long.toString(dateTime.getMillis()); |
|
|
|
String timestamp = Long.toString(dateTime.getMillis()); |
|
|
|
Timber.d("DateTime %s was converted to %s, or %s", originalDateTime, timestamp, dateTime.toString()); |
|
|
|
|
|
|
|
return timestamp; |
|
|
|
} |
|
|
|
|
|
|
|
@VisibleForTesting |
|
|
|