Line 60 typo (MAX_TEMPLAT_DATE to MAX_TEMPLATE_DATE)
Hi Thank you for the great script. It is super useful. I think in line 60 there was a small typo. As a result always the actual date is used no matter what is specified in the max_template_date option