Jump to content

Recommended Posts

Posted

We have some approval tasks setup on a change request flow. The intelligent capture form asks the user to specify the implementation window for the change, these dates are then pulled through to the approval task when sent to the approver but it displays in a strange format:

DCkpyGWEdqE0aTM_mtw9yNCveMLRaEa-CQuUIKgFXAQW0ZoTmJUxdVW_xADZFVsOiEVc_H1VIDKXwBA1Vlo9CK0TPBXzQxlwjIvQw3Iofi5Wy5ouS3dibO2fkfZ0NXzQUPKROb3MnfEq9ILnUdPiwjAsURkLcP3RB2-Aviy9RYNdU9M8gh_I

 

I've been told this is due to how Hornbill formats date and time values using the standard UTC format but I can't seem to find a way to change this.

 

From what I can see our system settings are configured correctly but the dates on the approval task just won't display in the correct format:

gUkNwI797CuL9qYn75ua9OcdJlmJ3HRHD0k5igkQBI07ioFpNl5qupvgTdf65isY2JPu30HmYK6Y0Y-cWLuQ6d-TdHF9vxvXRK9QioxY6Mm5CsznrsQS49AUkriH-1KlFaiT-eoSPN-61rC3UPnTYwt4_4wfMkBNgpWHEVl4x_1X7IM_-NXK

 

Can anyone advise?

Posted

You can try the wiki formatting, emails default to the database time value I believe so you have to tell it to be regional, view Date Formatting here 

Wiki Markup - Hornbill

and here Email Templates (hornbill.com)

 

  • {{.datetimefield|formatLocalTime}} = Allows formatting of datetime fields using system regional settings (system.RegionalSettings.timezone & system.RegionalSettings.dateTimeFormat), without this formatting the date time will use the DB value (UTC).
  • Like 1
Posted

Cheers @Jim, I've managed to get the dates in the approval task to display correctly using the wiki markup guidance of wrapping the entire field in []

image.png.0c80c8ccbd52f2bd463f508f8f0056ec.png

Only problem is that the task authorisation email template pulls through the whole approval task details  so I can't edit the individual date fields in the email template:

image.png.ec963e222059303ec2c849b551f44b87.png

 

This is how the dates look in the email template that comes through to the user:

image.png.5e99eeb2e533d3569a150dfa118c4699.png

Seems to be that the system tasks and email templates both have their own seperate default time setting, and require different ways of formatting to get the date to display correctly :(

Posted

I ended up using Custom Fields for formatting dates and times that were used on Cards and Authorisations, with the added decision of whether its UK BST or GMT.  I'm sure there's an easier way but it works for me..I do find the way dates and times are handled in different parts of the database difficult to understand but that probably means I need to spend more time trying to work it out

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...