I have created a normal Email Template (Type: Email)
When I do sent email using normal send email functionality, it does correctly show the date & time of the meeting or any other date/time field of related module.
However, we I choose the same template and send email via workflow, it shows only date, but not time of meeting or any other date/time field of related module.
I seek your guidance in finding the solution of it.
I have created a normal Email Template (Type: Email)
When I do sent email using normal send email functionality, it does correctly show the date & time of the meeting or any other date/time field of related module.
I also created a workflow to send it when some condition is true.
However, when I choose the same template and send email via workflow, it shows only date, but not time of meeting or any other date/time field of related module.
You can observe that there is difference in date format also, as it has changed from dd-mm-yyyy to yyyy-mm-dd.
B) One more little info: There is an additional action in workflow to automatically create the meeting. Can that have some more influence on what is happening above.
I solicit your help as to solve it, as it is very important for me to trigger this template via workflow.
There are two PHP configurations on your server, one is CLI (used from the command-line, so that’s what the cron entry that executes workflows is going to use), the other is used by the Web server (the rest of the SuiteCRM app runs from here).
Each has his own php.ini configuration file.
Run this on your server:
sudo find / -name php.ini
… to see a list of all php.ini’s on your system.
Each has it’s own “datetime” format setting. I would explore those settings to see about the different formats.
Since I am testing everything on localhost, before bringing the new WorkFlow to live website, I have checked that there is only one file php.ini at localhost.
When I search for string ‘datetime’, I found the following snippet only:
;mssql.datetimeconvert = On
I tried after unchecking it, but there was no change in the email sent.
I have found that the file which is parsing the email templates in WorkFlows, i.e., templateParser.php in folder /modules/AOW_actions/actions/.
This file also calls forth the file: templateParser.php from the folder modules/AOS_PDF_Templates/.
Probably the interplay of these two files is resulting in the datetime field in format: yyyy-mm-dd or ymd.
Can any experience coder suggest me the changes, so that the datetime field in format: dd-mm-yyyy or dmy with TIME?
Here is example snapshot of what I require as the output in email sent:
I note that those “soluitions” don’t have a PR for them. This way it is very hard that they will receive any attention in the midst of so many other things going on in Github…
Can one of you create a PR with a working solution?