You have a difference between the time zone of the server where ProcessMaker is installed and the time zone of the local computer where the web browser is accessing ProcessMaker.
If all your users are in the same time zone, then change the time zone of your server to that time zone. You need to change the time zone of your server (you can use the "date" command in Linux), then change the
date.timezone in your server's
php.ini file and also set
time_zone ="X" in your
env.ini file.
If all of that is too complicated, then just use JavaScript to set a hidden field in a Dynaform.
Create a datetime field associated with the "currentTime" variable.
Then use this JavaScript code to set it:
Code: Select allvar formId = $("form").prop("id");
$("#"+formId).setOnSubmit( function() {
var now = moment().format("YYYY-MM-DD HH:mm:ss");
$("#currentTime").setValue(now);
});
Then, you can use it in a subsequent trigger as @@currentTime. You know that it will be the current time when the dynaform was submitted according to the user's local computer.