Skip to content

Commit

Permalink
traffic-bz: actually use history start date | 2
Browse files Browse the repository at this point in the history
  • Loading branch information
dulvui committed Dec 18, 2023
1 parent 3ae6636 commit 482962b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,12 @@ public class HistoryRetriever {
/*
* retrieve all history data from a given point in time and push it to the bdp
*/
public void getHistory(){
public void getHistory(LocalDateTime newestDateMidnight){

DateTimeFormatter format = DateTimeFormatter.ofPattern("dd/MM/yyyy");
LocalDateTime newestDateMidnight = LocalDate.parse(startDate,format).atStartOfDay();
LocalDateTime manualDate = LocalDate.parse(startDate,format).atStartOfDay();
if (newestDateMidnight == null || manualDate.isAfter(newestDateMidnight))
newestDateMidnight= manualDate;
try {
XMLGregorianCalendar from = null,to = null;
GregorianCalendar cal = new GregorianCalendar();
Expand Down

0 comments on commit 482962b

Please sign in to comment.