Fix the time generation.