FormatSeconds function changed