Shedding light on sundials