From d95070f72654b07cf8b03954ddb135ee75be3655 Mon Sep 17 00:00:00 2001 From: Chris Jackson Date: Tue, 24 Sep 2013 16:00:30 +0100 Subject: [PATCH] Switch SQL date queries to use 24hr format --- .../persistence/sql/internal/SqlPersistenceService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/persistence/org.openhab.persistence.sql/src/main/java/org/openhab/persistence/sql/internal/SqlPersistenceService.java b/bundles/persistence/org.openhab.persistence.sql/src/main/java/org/openhab/persistence/sql/internal/SqlPersistenceService.java index 197be5b8204..0abab571652 100644 --- a/bundles/persistence/org.openhab.persistence.sql/src/main/java/org/openhab/persistence/sql/internal/SqlPersistenceService.java +++ b/bundles/persistence/org.openhab.persistence.sql/src/main/java/org/openhab/persistence/sql/internal/SqlPersistenceService.java @@ -423,7 +423,7 @@ public Iterable 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(); @@ -432,7 +432,7 @@ public Iterable query(FilterCriteria filter) { logger.error("SQL: Unable to find table for query '" + itemName + "'."); return Collections.emptyList(); } - + String filterString = new String(); if (filter.getBeginDate()!=null) {