Fixes timestamp in templates