Changed time to sec