Can I convert Date Format of Date Field and Datetime Field with Logic Hooks?

Hi there,

I have a question: Can I convert Date Format of Date Field and Datetime Field with Logic Hooks?

if true, can someone help me to create it?

Thanks,

Nico

To achieve what, in which screen?

1 Like

Hi @Pgr,

thank you for your support. I mean for example when I create a Date Field and I start an email Campaign, it print the american Date Format on the Email but I need the european. There is anyway to fix it?

Thanks,

Nico

If you set up your date.timezone in php.ini correctly (twice: one for the app and one for the scheduler jobs running under CLI, such as Campaigns), and if you set up date/time formats in the user’s profile, you should never see a date that isn’t in your preferred format.

Hi @Pgr,

I created a php.ini File under my SuiteCrm Web Hosting Folder home/my_website.com/suitecrm/


date.timezone= "Europe/Berlin";
"display_errors = off";

Could you please suggest me where the folder of scheduler jobs running under CLI in module Accounts is?

Thank you in advance,

Nico

try this from the command-line

php -i | grep php.ini