This certainly coincides with what I'm seeing. St Petersburg, Fl ->
Houston, Tx = 787 miles. Clearly less than the 835 miles to Washington,
DC.

Could something like ensuring the difference in longitude does not
exceed a certain value (presumably somewhere in the 7.5 degree mark)
help reduce (or even eliminate) this problem?

I.e. the code would read something like this (WARNING - untested...
quite possibly not the correct syntax!):

        for (l = zones; l; l = l->next) {
                ClockZoneInfo *info = l->data;
                clock_zoneinfo_get_coords (info, &zlat, &zlon);

                d = distance (lat, lon, zlat*M_PI/180.0,
zlon*M_PI/180.0);

                if (d < dist && abs(lon - zlon*M_PI/180.0) <= 7.5) {
                        best = info;
                        dist = d;
                }
        }

-- 
City (Pittsburgh) Associated w/ Wrong Timezone
https://bugs.launchpad.net/bugs/185190
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to