Skip to content

Commit

Permalink
Fixing date format in ListEnvelopesServices.java
Browse files Browse the repository at this point in the history
  • Loading branch information
InbarGazit committed Feb 23, 2024
1 parent 62476b7 commit cd570dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ public static boolean HashIsValid(String secret, byte[] payload, String verify)
return isEqual;
}
//ds-snippet-end:Connect1Step1
public static void main(String[] args) {

public static void main(String[] args)
{
LOGGER.info("DocuSign HMAC Tester");
try {
Boolean response = HttpsConnectWebhookhMacValidation.HashIsValid("{DocuSign HMAC private key}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public final class ListEnvelopesServices {
public static EnvelopesInformation listEnvelopes(EnvelopesApi envelopesApi, String accountId) throws ApiException {
EnvelopesApi.ListStatusChangesOptions options = envelopesApi.new ListStatusChangesOptions();
LocalDate date = LocalDate.now().minusDays(FROM_DATE_OFFSET_DAYS);
options.setFromDate(DateUtils.DATE_WITH_SLASH.format(date));
options.setFromDate(DateUtils.DATE_WITH_LINES.format(date));
return envelopesApi.listStatusChanges(accountId, options);
}
}

0 comments on commit cd570dc

Please sign in to comment.