Skip to content

Commit

Permalink
Merge pull request alibaba#533 from blakesu/master
Browse files Browse the repository at this point in the history
最慢查询发生时间不能区分上午下午
  • Loading branch information
yakolee committed Apr 25, 2014
2 parents b7dfbc0 + 18417b6 commit 2a2a468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/alibaba/druid/stat/DruidStatService.java
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ private String getSqlStat(Integer id) {
map.put("parsedOrderbycolumns", visitor.getOrderByColumns().toString());
}

DateFormat format = new SimpleDateFormat("yyyy/MM/dd hh:mm:ss:SSS");
DateFormat format = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss:SSS");
Date maxTimespanOccurTime = (Date) map.get("MaxTimespanOccurTime");
if (maxTimespanOccurTime != null) {
map.put("MaxTimespanOccurTime", format.format(maxTimespanOccurTime));
Expand Down

0 comments on commit 2a2a468

Please sign in to comment.