Features/TimeZoneAndLocation

From FedoraProject

Jump to: navigation, search

Contents

Time Zone / Location / Locale Improvements

Summary

Improve the handling of time zones, and related to that, the handling of location in general, and related to that, locale in general. (The exact scope of this feature is not yet completely determined.)

Owner

Current status

libgweather includes a location-selection entry, and intlclock uses it. Timezone names are localized in the location database.

system-config-date, firstboot and evolution are not done yet.

Detailed Description

Time Zone / Location in Fedora 9

Fedora 9 has (at least) 3 timezone settings:

Although the system timezone is nominally system-wide and the intlclock and evolution timezones are nominally per-user, most users will want all three to be the same. evolution should pick up the system timezone automatically by default, although for historical reasons it does not. intlclock on the other hand cannot set up a "location" entry based solely on the system timezone, because it needs information about weather stations as well, which can't be derived from the timezone. So if we want intlclock to be correctly configured automatically, that means the user has to pick a location rather than merely a timezone during firstboot.

Location-picking UIs

Unless we can embed Google Maps into the UI, which we presumably can't, we need to stick with a textual interface here. intlclock's current interface can be improved upon. We may be able to use a free webservice like GeoNames to map arbitrary city names into coordinates which can be used to find a nearby weather station.

In GNOME 2.23, libgweather now has a location database that is more focused on big cities, making it easier for users to pick out a location that is close to them. (qv [http://bugzilla.gnome.org/show_bug.cgi?id=538464 libgweather bug 538464])

Time Zone-picking UIs

Even if timezone selection is primarily a side-effect of the location-selection UI, we still need to present our guessed timezone to the user, and allow them to correct it if it's wrong. (And there are also other situations where we need to present timezone names, such as in the evolution calendar.)

There are two issues here:

If we want a map-based interface, something like OS X's would be better than the current one (although we don't currently have any information about the shapes of timezones). OTOH, if the timezone picker is mostly only going to be used when the location picker fails, it may be better to have a non-map-based interface, so that it's not biased in favor of making the same mistakes the location interface makes.

We would also want to use the localized timezone names from libgweather; the tzdata timezone names are confusing for a variety of reasons (discussed in libgweather bug 529054).

tzdata explicitly identifies which countries go with which timezones, so we could also filter the list to only show timezones that are relevant to the current country; this would cut the list down from 400 entries to at most 11 (for Russia). We could also add the "generic" timezones (eg, "GMT-5") at the end of the list, to be used as a last resort in cases where tzdata hasn't kept up with the latest changes. (libgweather's GWeatherTimezoneMenu does not currently do these things)

Additional Location-based Configuration

What else can be configured on the basis of location?

More blue-sky-ish, and possibly dumb:

Benefit to Fedora

Integrating the disparate dialogs and replacing Fedora-local code (eg, system-config-date) with upstream functionality (libgweather/intlclock, etc) etc will simplify maintenance.

Scope

How To Test

  1. Buy a GPS
  2. Travel around the world, spending a few days in each location doing testing
  3. Fix bugs encountered, revisit buggy locations to re-test
  4. Submit expense report to the Board

User Experience

  1. Users who live somewhere should be able to tell Fedora where they live, and have it set their timezone and weather station appropriately, even if they live somewhere really obscure. Furthermore, they should only need to enter this information once. (Unless they move...)
  2. Users who travel with their computers should be able to easily have the computer's timezone and weather indicator "follow" them.

Examples of the new widgets:

  1. Autocompletion in the location entry: Image:Location-entry.png
  2. Timezone selection: Image:Timezone-combo.png

Dependencies

Contingency Plan

Documentation

There is no user documentation at this point.

Release Notes

The user interface for selecting time zones and locations in the clock applet has been improved, giving a much smoother user experience.