Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Commit

Permalink
Switch SQL date queries to use 24hr format
Browse files Browse the repository at this point in the history
  • Loading branch information
cdjackson committed Sep 24, 2013
1 parent ee2a9e3 commit d95070f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ public Iterable<HistoricItem> query(FilterCriteria filter) {
connectToDatabase();
}

SimpleDateFormat mysqlDateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
SimpleDateFormat mysqlDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
if (isConnected()) {
String itemName = filter.getItemName();

Expand All @@ -432,7 +432,7 @@ public Iterable<HistoricItem> query(FilterCriteria filter) {
logger.error("SQL: Unable to find table for query '" + itemName + "'.");
return Collections.emptyList();
}

String filterString = new String();

if (filter.getBeginDate()!=null) {
Expand Down

0 comments on commit d95070f

Please sign in to comment.