Skip to content

Commit e13ff44

Browse files
author
nianiB9
committed
Update cursorDate to calculate date from 1 year ago
1 parent 557dadb commit e13ff44

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/docusign/controller/monitor/services/GetMonitoringDataService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ public final class GetMonitoringDataService {
1313
public static JSONArray getMonitoringData(DataSetApi datasetApi) throws Exception {
1414
// Declare variables
1515
boolean complete = false;
16-
String cursorValue = "";
16+
LocalDate cursorDate = LocalDate.now().minusYears(1);
17+
String cursorValue = cursorDate.format(DateTimeFormatter.ofPattern("yyyy-MM-dd")) + "T00:00:00Z";
1718
JSONArray monitoringData = new JSONArray();
1819

1920
LOGGER.info("before optinos");

0 commit comments

Comments
 (0)