Variable for putting "Current Date" in email templates

Dear All,

I want to put Current Date in ojs emails.

May you please tell me if there is any Variable for it?

I tried {$dateCurrent} and {$CurrentDate} but did not work.

Thanks and regards,
Mahmoud :slight_smile:

Hi @mdmirzaei20,

There is no variable for this at the moment – but if you wanted to add one, you could add it here: https://github.com/pkp/pkp-lib/blob/master/classes/mail/MailTemplate.inc.php#L170..L172

We’d be happy to review a pull request to include a change like that in future releases of the software.

Regards,
Alec Smecher
Public Knowledge Project Team