I seem to remember it looks for gnome-clock to discover your location, and gives up if that's not found, although the GTK version does unhelpfully just exit without a message. It can't work without knowing your latitude and longitude to work out sunset/sunrise times.