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