You are not logged in.

#1 2017-03-01 10:44:26

zizheng
Member
Registered: 2016-12-11
Posts: 18

[SOLVED] Incorrect automatic time zone

I've noticed that the automatic time zone detection functionality of my GNOME 3 is not working correctly. My actual time zone is PST (UTC-08), but if I toggle on the "Automatic Time Zone" option in "All Settings -> Date & Time", it would detect me to be in EST (UTC-05).

Kernel: 4.9.11-1-ARCH
GNOME: 3.22.3-1

Output of `timedatectl`:

      Local time: Wed 2017-03-01 05:36:18 EST
  Universal time: Wed 2017-03-01 10:36:18 UTC
        RTC time: Wed 2017-03-01 10:36:18
       Time zone: America/New_York (EST, -0500)
 Network time on: yes
NTP synchronized: yes
 RTC in local TZ: no

Output of `sudo hwclock --show`:

2017-03-01 05:37:38.295861-0500

(Which is the current EST time)

Output of `date`:

Wed Mar  1 05:39:07 EST 2017

I suspected it was something wrong about my IP address, but all online IP location finder websites I've tried tell me I'm in San Francisco (which is correct). Also, I'm running dual systems (Windows 10 & Arch), and one OS writing the hardware clock always results in the other OS having an incorrect time on next boot; I just ignore it and let the OSes' internet time services correct it. Wrong time zone detection only began today.

I'm not sure how to approach this issue. Can anyone shed some light on what might be the cause?

Last edited by zizheng (2017-03-10 15:10:43)

Offline

#2 2017-03-01 11:43:01

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,433

Re: [SOLVED] Incorrect automatic time zone

Offline

#3 2017-03-01 16:16:49

seth
Member
Registered: 2012-09-03
Posts: 49,955

Re: [SOLVED] Incorrect automatic time zone

Unless you've some GPS device, gnome will use geoclue will use geoiplookup which by default comes in the "country edition", run

geoiplookup <your wan IP>

It'll likely say "US, USA" and then there'll be some auto-resolution to EST.

Try to install "pacman -S geoip-database-extra", but I don't know wether geoclue/gnome can make use of that.

Online

#4 2017-03-02 09:59:38

NoSuck
Member
Registered: 2015-03-04
Posts: 157
Website

Re: [SOLVED] Incorrect automatic time zone

Did any system changes take place immediately prior to this problem?  What does /etc/localtime show?

Last edited by NoSuck (2017-03-02 10:01:12)

Offline

#5 2017-03-02 21:07:11

zizheng
Member
Registered: 2016-12-11
Posts: 18

Re: [SOLVED] Incorrect automatic time zone

seth wrote:

Unless you've some GPS device, gnome will use geoclue will use geoiplookup which by default comes in the "country edition", run

geoiplookup <your wan IP>

It'll likely say "US, USA" and then there'll be some auto-resolution to EST.

Try to install "pacman -S geoip-database-extra", but I don't know wether geoclue/gnome can make use of that.

Yeah, the `geoiplookup` command reports San Francisco after I installed geoip-database-extra, but that doesn't help GNOME. It's still detecting EST time zone.

Offline

#6 2017-03-02 21:08:36

zizheng
Member
Registered: 2016-12-11
Posts: 18

Re: [SOLVED] Incorrect automatic time zone

NoSuck wrote:

Did any system changes take place immediately prior to this problem?  What does /etc/localtime show?

I update my system daily and don't really remember what were changed prior to this problem...

/etc/localtime is symlinked to /usr/share/zoneinfo/America/New_York by GNOME.

Offline

#7 2017-03-05 14:16:36

NoSuck
Member
Registered: 2015-03-04
Posts: 157
Website

Re: [SOLVED] Incorrect automatic time zone

I do not know what can be done, other than filing a bug report with GNOME.  I might wager that New York is the default time zone of the en_US locale and that perhaps something prevents GNOME from accessing geographic location at all.

Offline

#8 2017-03-10 13:06:46

zizheng
Member
Registered: 2016-12-11
Posts: 18

Re: [SOLVED] Incorrect automatic time zone

As of now the problem no longer exists. I guess a recent update fixed it.

Offline

#9 2017-03-10 13:57:34

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED] Incorrect automatic time zone

zizheng wrote:

As of now the problem no longer exists. I guess a recent update fixed it.

Please remember to mark your thread [SOLVED] (edit the title of your first post.)


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

Board footer

Powered by FluxBB