fix fromSeconds conversion