<div dir="ltr"><span style="font-size:13px"><i>This is definitely not an optimal solution. This formatting functionality occurs in quite a lot of templates so requires editing of many files... It strikes me that this kind of thing should only be defined in one place; not necessarily a user-configurable setting but it shouldn't be so "hard-coded" (in my humble opinion).</i></span><br><div><span style="font-size:13px"><i><br></i></span></div><div><span style="font-size:13px">Sure Alan, I can understand your point we will take care of this coding guidelines strictly going ahead.</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 23, 2015 at 7:50 PM, Alan Lord <span dir="ltr"><<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 23/01/15 13:20, Alan Lord wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 23/01/15 05:52, Uma S wrote:<br>
</blockquote>
<br>
</span><span class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I mean we are using formatDateTimeIntoDayString() api for title<br>
attribute and formatDateDiffInStrings() api to display actual value as<br>
"2 days ago". So using this according to your needs will help.<br>
<br>
You can check this case in file<br>
layouts/vlayout/modules/<u></u>Vtiger/Comment.tpl<br>
</blockquote>
<br>
Thanks Uma, I understand and can change this now.<br>
</blockquote>
<br></span>
This is definitely not an optimal solution. This formatting functionality occurs in quite a lot of templates so requires editing of many files... It strikes me that this kind of thing should only be defined in one place; not necessarily a user-configurable setting but it shouldn't be so "hard-coded" (in my humble opinion).<br>
<br>
I have swapped the formatting for my customer so they have the formatDateDiffInStrings() in the title attribute and the formatDateTimeIntoDayString as the actual text display.<br>
<br>
Al<br>
<br>
______________________________<u></u>_________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">With<br>Best Regards<br>Uma.S<br><div>Vtiger Team</div></div></div>
</div>