REST call - Date format and timezone not applying on email

Hi fellow developers,

I am working on a custom form to create case(s) using REST call.

I have set system datetime format, as well as user preference’s datetime format. The user has been assigned against the email template as well.

When creating the case from Suitecrm UI, the datetime format in email is working correctly.

However, after case being created via the custom form, the case creation email does not apply the correct date time format as well as timezone.

Any hint on how this could be fixed?

Thanks and regards,
Shaun

Could you provide some code? Do you have a logic hook on the “after_save”? You could use that to re-format the date the way you want it using the PHP DateTime object.