Issue #2322287 by tuutti, lauriii, wheatpenny: Move datetime classes from preprocess to template.