fix bug in api_secondstodhms with years