Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No timezone detected on Ubuntu Linux #503

Closed
falko opened this issue Jun 13, 2017 · 4 comments
Closed

No timezone detected on Ubuntu Linux #503

falko opened this issue Jun 13, 2017 · 4 comments

Comments

@falko
Copy link

falko commented Jun 13, 2017

When I go to http://momentjs.com/timezone/ no timezone is displayed. I'm running Ubuntu 16.04.2 LTS and tried Firefox 53.0.3 (64-bits), Chromium 58.0.3029.110 and Opera 45.0. If I do the same in a Windows VM, it properly displays 'Europe/Berlin 08:57 am CEST'

$ date
Di 13. Jun 08:34:53 CEST 2017

If I try the following JavaScript code it detects the offset correctly:
https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_gettimezoneoffset

@falko
Copy link
Author

falko commented Jun 14, 2017

$ more /etc/timezone
Europe/Berlin

@mattjohnsonpint
Copy link
Contributor

mattjohnsonpint commented Jun 26, 2017

What precisely do you mean by "no timezone is displayed"? The moment-timezone website give a map of the time zones of the world. What you get back is related to where you place your mouse, not what is on your machine.

We have a function moment.tz.guess() that you could call for that, but is that what you're doing?

The map does default to the active guess, but if you mouse-over, you'll get something else.

@falko
Copy link
Author

falko commented Jun 30, 2017

The page http://momentjs.com/timezone/ displays a timezone even without placing the mouse on the map. My understanding is, that this is the time zone detected from my browser. However, on my Linux system, the detection doesn't seem to work.

@gilmoreorless
Copy link
Member

Time zone guessing issues like this often come down to the underlying data in the browser, which changes over time. I'm closing this off for now, but if the problem is still happening, feel free to re-open the issue.

@gilmoreorless gilmoreorless closed this as not planned Won't fix, can't repro, duplicate, stale Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants