Two oscillating systems; a simple pendulum and a vertical spring - mass - system have same time period of motion on the surface of the Earth. If both are taken to the moon, then
Time period of the simple pendulum will be more than that of the spring - mass system
For simple pendulum: T=2π√lg
As g is less on moon, time period will be more
For spring mass system: T=2π√mK
Since it does not depend on acceleration due to gravity, it will not change.