req.write(bodyBytes);
final int responseCode = http.getResponseCode();
- debug("network",
- String.format("Response: %d %s", responseCode, http.getResponseMessage()));
+ debug("network", String.format(Locale.US, "Response: %d %s", responseCode,
+ http.getResponseMessage()));
try (InputStream resp = http.getErrorStream()) {
params.addPair("_token", token);
SimpleDate transactionDate = transaction.getDate();
- if (transactionDate == null) {
- transactionDate = SimpleDate.today();
- }
params.addPair("date", Globals.formatLedgerDate(transactionDate));
params.addPair("description", transaction.getDescription());