Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Commit

Permalink
Merge pull request #180 from tgruben/timeview-bug
Browse files Browse the repository at this point in the history
backport improperly handling time views
  • Loading branch information
tgruben committed Feb 3, 2020
2 parents 0686473 + 4440da7 commit 8e70edc
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -217,14 +217,14 @@ private String viewByTimeUnit(long timestamp, char c) {
}

private Map<Character, SimpleDateFormat> timeFormats = new HashMap<>(4);

{
{
timeFormats.put('Y', new SimpleDateFormat("yyyy"));
timeFormats.put('M', new SimpleDateFormat("MM"));
timeFormats.put('D', new SimpleDateFormat("dd"));
timeFormats.put('H', new SimpleDateFormat("mm"));
timeFormats.put('M', new SimpleDateFormat("yyyyMM"));
timeFormats.put('D', new SimpleDateFormat("yyyyMMdd"));
timeFormats.put('H', new SimpleDateFormat("yyyyMMddHH"));
}


private final Field field;
private final long shard;
private final long shardWidth;
Expand Down

0 comments on commit 8e70edc

Please sign in to comment.