Critical behavior of the SIS epidemic model with time-dependent infection rate