Revision 60109
Added by Alessia Bardi over 3 years ago
FindDateRangeForIncrementalHarvestingJobNode.java | ||
---|---|---|
29 | 29 |
final long d = findLastSuccessStartDate(); |
30 | 30 |
LocalDateTime zdt = LocalDateTime.ofInstant(Instant.ofEpochMilli(d), ZoneId.of("Etc/UTC")); |
31 | 31 |
zdt = zdt.minusHours(6); |
32 |
return DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss'Z'").format(zdt);
|
|
32 |
return DateTimeFormatter.ofPattern("yyyy-MM-dd").format(zdt); |
|
33 | 33 |
} |
34 | 34 |
|
35 | 35 |
|
Also available in: Unified diff
For incremental harvesting: return the date with date granularity level.