explicit UTC date parsing
Original commit: elastic/x-pack-elasticsearch@80a3f01ab1
This commit is contained in:
parent
351288b3dc
commit
9947dab389
|
@ -14,7 +14,7 @@ public class DateUtils {
|
||||||
|
|
||||||
private final static FormatDateTimeFormatter formatDateTimeFormatter = Joda.forPattern("yyyy-MM-dd");
|
private final static FormatDateTimeFormatter formatDateTimeFormatter = Joda.forPattern("yyyy-MM-dd");
|
||||||
|
|
||||||
private final static DateTimeFormatter dateTimeFormatter = formatDateTimeFormatter.parser();
|
private final static DateTimeFormatter dateTimeFormatter = formatDateTimeFormatter.parser().withZoneUTC();
|
||||||
|
|
||||||
public static long endOfTheDay(String date) {
|
public static long endOfTheDay(String date) {
|
||||||
MutableDateTime dateTime = dateTimeFormatter.parseMutableDateTime(date);
|
MutableDateTime dateTime = dateTimeFormatter.parseMutableDateTime(date);
|
||||||
|
|
Loading…
Reference in New Issue