OpenESignForms / openesignforms

Open eSignForms is the first open source SaaS web contracting platform
https://open.esignforms.com
107 stars 50 forks source link

Using SET FIELD VALUE action, ${out:dateTimeField} uses system timezone rather than user's #172

Closed OpenESignForms closed 8 years ago

OpenESignForms commented 8 years ago

We have a SET FIELD VALUE action in our document's custom logic that sets a General field to ${out:dateTimeField} (dateTimeField is specified as a DateTime field that includes the timezone output specification), the timezone value stored in the general field is the timezone of the deployment, not of the logged in user who's actions triggered the SET FIELD VALUE action.

OpenESignForms commented 8 years ago

Fixed so the date-time uses the user's timezone (when the party is a logged in user) for the action. If no such TZ can be found, then it uses the deployment's default TZ.