Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
AMBARI-24912 - Infra Manager: scheduled job fails with dateparse exce…
…ption (#16)
  • Loading branch information
kasakrisz committed Nov 19, 2018
1 parent da6bdb9 commit c818680578cb686460d0a6fd398bb4b990cd47d8
Showing 1 changed file with 2 additions and 1 deletion.
@@ -25,6 +25,7 @@

import java.time.Duration;
import java.time.OffsetDateTime;
import java.time.ZoneOffset;
import java.util.HashMap;
import java.util.Map;

@@ -33,7 +34,7 @@
public class SolrQueryBuilder {

public static String computeEnd(String end, Duration ttl) {
return computeEnd(end, OffsetDateTime.now(), ttl);
return computeEnd(end, OffsetDateTime.now(ZoneOffset.UTC), ttl);
}

public static String computeEnd(String end, OffsetDateTime now, Duration ttl) {

0 comments on commit c818680

Please sign in to comment.