You should read more about the history of developments in physics in the period 1750-1810, when the work
of Euler (F=m.dv/dt) spread along Europe and a new generation of polymaths (in particular at France) developed
the mathematics of newtonian mechanics and (Laplace) married it with celestial mechanics.
The equation of pendulum clocks reached perfection around 1790, and the simple formula of the period was
developed, providing that deviations from the vertical are lower than 15°. Pendulum clocks were calibrated at
different parts of Europe and Africa, to adjust the length of the swinging arm to 1 second period. The history
about these developments are easily available online, in French sites.
Equation of the pendulum:
T = 2π √L/g₀
T: Period
L: Length of pendulum
g₀: acceleration due to gravity
The results of this equation were known with 7 digits accuracy by the times of Von Soldner theory of light deflection (1801),
specifically for a given coordinate at France.
As the equivalence of inertial and gravitational masses were widely accepted by then (250 years and counting), the equation
could be formulated using Newton's Law with Gauss values for G (Cavendish value was accepted much later).
g₀ = G.Me/R₀²
so,
T = 2π √L/g₀ = 2πR₀ √L/(G.Me)
g₀ is the value of gravity at the designated place, on Earth (3D coordinate).
T = 2πR₀ √L/(G.Me)
If the radius increase, so does the period T. It forces L to be lower.
If planet mass increases, T decreases, so L has to increase to compensate.
The main idea behind the pendulum clock is that exactly half period gives exactly 1 second.
Relativity doesn't have a single saying here. Newton always prevails.