patched date.format bug in template rendering on index