Skip to content
Snippets Groups Projects
Commit 5c725fc7 authored by Tim Molter's avatar Tim Molter
Browse files

changed the date formatter a bit

parent 220acdfc
No related branches found
No related tags found
No related merge requests found
......@@ -99,7 +99,7 @@ public class DateFormatter {
datePattern = "HH:mm";
}
else if (timeUnit == HOUR_SCALE) {
datePattern = "dd-HH";
datePattern = "HH:mm";
}
else if (timeUnit == DAY_SCALE) {
datePattern = "MM-dd";
......
......@@ -91,7 +91,7 @@ public class DateFormatterTest {
gridStepHint = (long) (span / 1000 * 74);
timeUnit = dateFormatter.getTimeUnit(gridStepHint);
stringValue = dateFormatter.formatDate(value, timeUnit);
assertThat(stringValue, equalTo("13-21"));
assertThat(stringValue, equalTo("21:25"));
// week
value = 1358112317000L;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment