HADOOP-14281. Fix TestKafkaMetrics#testPutMetrics. Contributed by Alison Yu.

This commit is contained in:
Andrew Wang 2017-05-02 11:49:19 -07:00
parent dcc292d7de
commit b062b323b7
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ public class TestKafkaMetrics {
Date currDate = new Date(timestamp);
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
String date = dateFormat.format(currDate);
SimpleDateFormat timeFormat = new SimpleDateFormat("hh:mm:ss");
SimpleDateFormat timeFormat = new SimpleDateFormat("HH:mm:ss");
String time = timeFormat.format(currDate);
String hostname = new String("null");
try {