Editing Variables?

I am currently editing the invoice template using the documents editor (using v4.5.2) and I was wondering if there is a way to edit a variable? Specifically, I would like to edit {{ o.timestamp }} so it only shows the date (currently it give the date and time). Is this at all possible?

Many thanks!

Date and time format is got from Settings. You can change format in the following file

app/Tygh/Tools/Formatter.php

$this->default_datetime_format = $this->settings['Appearance']['date_format'] . ', ' . $this->settings['Appearance']['time_format'];

Thank you eComLabs for the advice, as this did exactly what I needed. I removed ". ', ' . $this->settings['Appearance']['time_format']" and it did remove the time stamp. :grin:

You are welcome!

How can this be done without updates writing over it.

Need a reply to this question please. How can this be done without updates writing over it?

Since the file does not have hooks, there is no easy way to do it.

Hi!

Please check the following article: