Fix visualization output time

The visualization output still uses seconds rather than years even if
the “Use years in output instead of seconds” parameter is true, this
patch should fix it