Skip to content

Commit

Permalink
use current date time
Browse files Browse the repository at this point in the history
  • Loading branch information
jdbranham committed Aug 19, 2024
1 parent 1c01af0 commit c0ae42c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package net.savantly.nexus.flow.dom.form;

import java.time.Instant;
import java.util.Map;

import com.fasterxml.jackson.core.JsonProcessingException;
Expand Down Expand Up @@ -33,7 +34,7 @@ public void submitForm(Form form, Map<String, Object> payload)
payload.put("_form_id", form.getId());
payload.put("_form_name", form.getName());
payload.put("_submission_id", submission.getId());
payload.put("_submission_datetime", submission.getCreatedDate());
payload.put("_submission_datetime", Instant.now());

var destinations = form.getDestinations();
log.info("executing form hooks: " + destinations.size());
Expand Down Expand Up @@ -75,7 +76,7 @@ public void submitForm(Form form, Map<String, Object> payload, String apiKey, St
payload.put("_form_id", form.getId());
payload.put("_form_name", form.getName());
payload.put("_submission_id", submission.getId());
payload.put("_submission_datetime", submission.getCreatedDate());
payload.put("_submission_datetime", Instant.now());

var destinations = form.getDestinations();
log.info("executing form hooks: " + destinations.size());
Expand Down

0 comments on commit c0ae42c

Please sign in to comment.