[Vtigercrm-developers] Comments and Update Timestamp.

Alan Lord alanslists at gmail.com
Fri Jan 23 13:20:07 GMT 2015


On 23/01/15 05:52, Uma S wrote:
> Hi Alan,
>
> Yes, you can change this easily by modifying few files api() request. In
> comments widget of module summary you can see the title of day string
> displays actual time.
>
> I mean we are using formatDateTimeIntoDayString() api for title
> attribute and formatDateDiffInStrings() api to display actual value as
> "2 days ago". So using this according to your needs will help.
>
> You can check this case in file layouts/vlayout/modules/Vtiger/Comment.tpl

Thanks Uma, I understand and can change this now.

 From an architectural perspective however it strikes me that having 
formatting functionality like this in the template feels a bit wrong... 
Shouldn't this really happen in the View class and the template should 
just be for "presentation", not "manipulation" of data?

Alan




More information about the vtigercrm-developers mailing list