A note on time-dependent additive functionals