[Bug 185190] Re: City (Pittsburgh) Associated w/ Wrong Timezone

2008-03-14 Thread Richard J Foster
Erm... Ignore that last comment, It doesn't help in Pittsburgh's case
anyway. :-(

-- 
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


[Bug 185190] Re: City (Pittsburgh) Associated w/ Wrong Timezone

2008-03-14 Thread Richard J Foster
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


[Bug 185190] Re: City (Pittsburgh) Associated w/ Wrong Timezone

2008-03-12 Thread Steve Langasek
Yes, I've confirmed with a look at the code that there's no timezone-
mapping database.  The coordinates are not "parsed incorrectly",
however; the trouble is this:

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) {
best = info;
dist = d;
}
}

The default timezone is calculated using nothing more than the raw
distance to the cities after which the timezones are named.  This is
nonsense, this is obviously not how timezones are divided.

It would be far better for the location selector to not provide a
default timezone at all, rather than configuring a wrong one.

This may become a non-issue if bug #199644 is fixed.

-- 
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


[Bug 185190] Re: City (Pittsburgh) Associated w/ Wrong Timezone

2008-03-12 Thread matt felser
There is no database used for timezone mapping.  There is a file called
Locations.xml in libgweather that gives coordinates (among other things)
for all locations.  Somewhere, the coordinates are parsed incorrectly
and mapped to the wrong timezones.

-- 
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


[Bug 185190] Re: City (Pittsburgh) Associated w/ Wrong Timezone

2008-03-12 Thread Steve Langasek
Various bugs have been marked as duplicates of this one, but each refers
to different cities.  Documenting here the cities whose timezones are
set incorrectly:

Eugene, OR (should be America/Los_Angeles, is set to America/Boise)
Portland, OR (should be America/Los_Angeles, is set to America/Vancouver)
Bombay/Santacrus (Asia/Karachi -> Asia/Calcutta)
Houston, TX (America/Monterrey -> America/Chicago)
Nashville, TN (America/Kentucky/Monticello -> America/Chicago)
St. Petersburg, Russia (Europe/Helsinki -> Europe/Moscow)

This may indicate multiple buggy entries in a database used for timezone
mapping - or, it might suggest that the timezones are wrongly chosen
based on which city is closest to the indicated city?

-- 
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


[Bug 185190] Re: City (Pittsburgh) Associated w/ Wrong Timezone

2008-03-12 Thread Pedro Villavicencio
** Changed in: gnome-panel (Ubuntu)
   Status: Confirmed => Triaged

-- 
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


[Bug 185190] Re: City (Pittsburgh) Associated w/ Wrong Timezone

2008-03-02 Thread Sebastien Bacher
** Changed in: gnome-panel (Ubuntu)
   Importance: Undecided => Low
 Assignee: (unassigned) => Ubuntu Desktop Bugs (desktop-bugs)

-- 
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


[Bug 185190] Re: City (Pittsburgh) Associated w/ Wrong Timezone

2008-03-02 Thread Bug Watch Updater
** Changed in: gnome-panel
   Status: Unknown => New

-- 
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 subscribed to gnome-panel in ubuntu.

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


[Bug 185190] Re: City (Pittsburgh) Associated w/ Wrong Timezone

2008-03-01 Thread Andrew Starr-Bochicchio
** Bug watch added: GNOME Bug Tracker #519823
   http://bugzilla.gnome.org/show_bug.cgi?id=519823

** Also affects: gnome-panel via
   http://bugzilla.gnome.org/show_bug.cgi?id=519823
   Importance: Unknown
   Status: Unknown

-- 
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 subscribed to gnome-panel in ubuntu.

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


[Bug 185190] Re: City (Pittsburgh) Associated w/ Wrong Timezone

2008-03-01 Thread Andrew Starr-Bochicchio
Bug #197085, Bug #196385, and Bug #196124 all have similar issues.

-- 
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 subscribed to gnome-panel in ubuntu.

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


[Bug 185190] Re: City (Pittsburgh) Associated w/ Wrong Timezone

2008-02-23 Thread TerryG
Marking confirmed to reduce triage.

** Changed in: gnome-panel (Ubuntu)
   Status: New => Confirmed

-- 
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 subscribed to gnome-panel in ubuntu.

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


[Bug 185190] Re: City (Pittsburgh) Associated w/ Wrong Timezone

2008-02-17 Thread Sebastien Bacher
Thank you for your on that. Right there is similar bugs about other
locations so that's likely a code issue which means the bug might not be
that trivial

-- 
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 contact for gnome-panel in ubuntu.

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


[Bug 185190] Re: City (Pittsburgh) Associated w/ Wrong Timezone

2008-02-17 Thread matt felser
Thanks.  I examined the XML file and nothing is out of order there.  The
latitude/longitude, IWIN, forecast, and radar codes are all correct.  It
seems that the problem is in the gnome-panel package, and not
libgweather or gnome-applets.

I do not see where the time zone is generated from.  If it is parsed
from the coordinates, then they issue may lie in that algorithm.

-- 
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 contact for gnome-panel in ubuntu.

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


[Bug 185190] Re: City (Pittsburgh) Associated w/ Wrong Timezone

2008-02-17 Thread Sebastien Bacher
The source package is libgweather

-- 
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 contact for gnome-panel in ubuntu.

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


[Bug 185190] Re: City (Pittsburgh) Associated w/ Wrong Timezone

2008-02-17 Thread matt felser
Or is refers to whatever LIBGWEATHER_LOCATIONS points to.  However, I am
inexperienced with programming in Ubuntu and I cannot trace it any
further.

-- 
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 contact for gnome-panel in ubuntu.

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


[Bug 185190] Re: City (Pittsburgh) Associated w/ Wrong Timezone

2008-02-17 Thread matt felser
After some exploration, the locations are drawn from an XML file in
/usr/share/gnome-applets/gweather/Locations.xml.  I checked the source
of gnome-applets, but I could not find Locations.xml.  What package
would this be in?

-- 
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 contact for gnome-panel in ubuntu.

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


[Bug 185190] Re: City (Pittsburgh) Associated w/ Wrong Timezone

2008-02-17 Thread Sebastien Bacher
You are welcome to send a patch if you know what to change

-- 
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 contact for gnome-panel in ubuntu.

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


[Bug 185190] Re: City (Pittsburgh) Associated w/ Wrong Timezone

2008-02-16 Thread matt felser
Has any action been taken?  This seems like it should be a simple fix.

-- 
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 contact for gnome-panel in ubuntu.

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


[Bug 185190] Re: City (Pittsburgh) Associated w/ Wrong Timezone

2008-01-22 Thread matt felser
** Changed in: gnome-panel (Ubuntu)
Sourcepackagename: None => gnome-panel

-- 
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 contact for gnome-panel in ubuntu.

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