Fixed annoying warning about TEMPLATE_DIRS
Probably fixed runtime warning about naive datetime