Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[ solved ] Global Variable EMail_CustomCurrentDate_Format
#1
How I use this formatting?

I tried d-m-Y but not working ...
Ranieri
eCRM Web
Reply
#2
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')
Joe
TSolucio
Reply
#3
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


Attached Files Image(s)
       
Ranieri
eCRM Web
Reply
#4
try using format_date
Joe
TSolucio
Reply
#5
like as

$(general : (__VtigerMeta__) $createdtimed.m.Y - H:i)
Ranieri
eCRM Web
Reply
#6
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') ).
Joe
TSolucio
Reply
#7
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?
Ranieri
eCRM Web
Reply
#8
yes, that expression will be evaluated in the context of the record
Joe
TSolucio
Reply
#9
There anything wrong with sintaxe

Printed ."format_date(createdtime

I try changed a " to '

$(general : (__WorkflowFunction__) '.'format_date(createdtime ,'d.m.Y - H:i') ).
Ranieri
eCRM Web
Reply
#10
$(general : (__WorkflowFunction__) format_date(date_start ,'d.m.Y - H:i') ).
Joe
TSolucio
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)