More StrToTime Magic for the DB queries within Twig templates.

Issue: https://github.com/bolt/bolt/pull/496