[ solved ] Global Variable EMail_CustomCurrentDate_Format - Printable Version +- CoreBOSBB (https://discussions.corebos.org) +-- Forum: Support (https://discussions.corebos.org/forumdisplay.php?fid=17) +--- Forum: Administrator Support (https://discussions.corebos.org/forumdisplay.php?fid=8) +--- Thread: [ solved ] Global Variable EMail_CustomCurrentDate_Format (/showthread.php?tid=1501) Pages:
1
2
|
[ solved ] Global Variable EMail_CustomCurrentDate_Format - rslemer - 05-06-2019 How I use this formatting? I tried d-m-Y but not working ... RE: Global Variable EMail_CustomCurrentDate_Format - joebordes - 05-07-2019 Have you read this thread: https://discussions.corebos.org/showthread.php?tid=723 ? the format is a valid PHP format so what you put above is correct, but this only applies to the currentdate variable which is now deprecated in favor of get_date('today') RE: Global Variable EMail_CustomCurrentDate_Format - rslemer - 05-07-2019 so I got it wrong Because my problem is that when I put in the task of the workflow to sent a email with a create date, for example in tickets the date of creation of the ticket it comes out in the American format I wanted it to come out in the Brazilian format I set this format in the admin account and the user who receives these emails through the workflow, without success RE: Global Variable EMail_CustomCurrentDate_Format - joebordes - 05-07-2019 try using format_date RE: Global Variable EMail_CustomCurrentDate_Format - rslemer - 05-07-2019 like as $(general : (__VtigerMeta__) $createdtimed.m.Y - H:i) RE: Global Variable EMail_CustomCurrentDate_Format - joebordes - 05-08-2019 Reading the thread above and looking at the examples in the unit tests I'd say it is more like this: $(general : (__WorkflowFunction__) format_date(date_start ,'d.m.Y - H:i') ). RE: Global Variable EMail_CustomCurrentDate_Format - rslemer - 05-08-2019 Ok, you are right, my sintaxe not working .. I will try $(general : (__WorkflowFunction__) '."format_date(createdtime ,'d.m.Y - H:i') ). Because I think in place of "date_start" is a name in tickets module, right? RE: Global Variable EMail_CustomCurrentDate_Format - joebordes - 05-08-2019 yes, that expression will be evaluated in the context of the record RE: Global Variable EMail_CustomCurrentDate_Format - rslemer - 05-08-2019 There anything wrong with sintaxe Printed ."format_date(createdtime I try changed a " to ' $(general : (__WorkflowFunction__) '.'format_date(createdtime ,'d.m.Y - H:i') ). RE: Global Variable EMail_CustomCurrentDate_Format - joebordes - 05-08-2019 $(general : (__WorkflowFunction__) format_date(date_start ,'d.m.Y - H:i') ). |