You can use the following variables to show the current date and time at the moment an order or worksheet is created in the Order and Worksheet Templates.
- "now" | date: "%d/%b/%Y %H:%M": shows the current date and time of the DecoNetwork server.
- tz_now | date: "%d/%b/%Y %H:%M": shows the local date and time for you (the licensee).
Here is an example of how you can modify the default Order Template to show the current server or local date instead of the order date. Replace the default code in red below with the desired variable above.
Default Code
{% else %}
<li><label>Date</label><span>{{ order.date_ordered | date: "%d/%b/%Y" }}</span></li>
{% if order.date_due %}
<li><label>Date Ship By</label><span>{{ order.date_due | date: "%d/%b/%Y" }}</span></li>
{% endif %}
{% endif %}
Comments
0 comments
Please sign in to leave a comment.