Instead of using the magnetometer to point the sundial north, you angle the watch until the bolt’s shadow matches the white line on the PCB, and the ATmega328P computes the azimuth of the sun ...
This is a horizontal compass sundial, made of gilded silver. It is of 'Butterfield' type, named after English manufacturer Michael Butterfield, who popularised the adjustable bird gnomon.