! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Use geo-ip to set the timezone
Status:
RESOLVED: MOVED
Severity:
enhancement
Product:
Xfce4-panel

Comments

Description Miek Gieben 2012-06-03 09:50:30 CEST
When traveling it's very nice to set the local (laptop) time based on your current location. Such a feature would be a nice enhancement to the clock. Setting the system time would be even better, but I'm not sure how to handle that.

The weather plugin already downloads xml and parses that, the clock plugin could do the same, but then again maybe this should be incorperate in some xfce-util lib...
Comment 1 Khazar 2013-04-13 14:23:31 CEST
Nice idea.  I would like to add a question/thought: Should this feature be automatic OR should this feature be available when a travel mode button (or setting) is activated?
Comment 2 Raphael Groner 2013-05-04 20:31:34 CEST
Is it sufficient to base it on the country you are in?

$ curl http://whatsmyip.net/ | grep "[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*</title>" | sed "s,<title>What's My IP - Your IP is: \(.*\)<.*,\1," |xargs whois |grep country |sed "s,country: *\([A-Z]*\),\1,"

Then implement locally a nice language code - main city mapping table and there you go :)
Comment 3 Raphael Groner 2013-05-04 20:32:34 CEST
See also bug #8151 about broken geo location service.
Comment 4 Raphael Groner 2013-05-04 22:11:58 CEST
The GeoLite databases are our free IP geolocation databases. They are updated on the first Tuesday of each month. These databases are offered in the same binary and csv formats as our subscription databases. Any code which can read the subscription databases can also read the GeoLite databases.

http://dev.maxmind.com/geoip/legacy/geolite
Comment 5 unhammer+dill 2015-02-21 10:04:22 CET
(In reply to Khazar from comment #1)
> Nice idea.  I would like to add a question/thought: Should this feature be
> automatic OR should this feature be available when a travel mode button (or
> setting) is activated?

There should at least be a way to turn it off, both because people might want to see their home TZ and because some people might not want to send network requests automatically.

(In reply to Raphael Groner from comment #2)
> Is it sufficient to base it on the country you are in?

City maybe, but many countries cover several different timezones ;-)
Comment 6 Git Bot editbugs 2020-05-28 01:41:56 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/xfce4-panel/-/issues/34.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #8983

Reported by:
Miek Gieben
Reported on: 2012-06-03
Last modified on: 2020-05-28

People

Assignee:
Nick Schermer
CC List:
4 users

Version

Version:
4.10.1

Attachments

Additional information