GithubHelp home page GithubHelp logo

jstimezonedetect's People

Contributors

pellepim avatar skhanbit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

jstimezonedetect's Issues

Please ad tags

Hi,
tags corresponding to npm registry are missing, could you add them? At least v1.0.7 ?

Problems upgrading to 1.0.7 with Yarn and RequireJS

I am using RequireJS to manage my JS modules and I am having a tough time trying to update from 1.0.5 to 1.0.7.

This is my change to config.js:

-       jstz: '/app/assets/vendor/jstimezonedetect/jstz',
+       jstz: '/app/assets/vendor/jstimezonedetect/dist/jstz.min',

When I try to reference jstz in the code I get the following error:

ReferenceError: "jstz is not defined"

This is my calling code:

        var timezone = jstz.determine();
        timeZoneField.val(timezone.name());

Are there any other steps to upgrading or am I missing something?

Project abandoned?

I notice there has not been any commits for a year and issues have not been responded to.
Is this project now abandoned?

Legacy timezones should be mapped to current valid list

This library currently returns a number of timezones that have been deprecated by the tz database (and consequently current versions of programming languages like PHP).

A few legacy timezones that I have noticed being returned recently include:

  • America/Buenos_Aires => Should be America/Argentina/Buenos_Aires
  • America/Indianapolis => Should be America/Indiana/Indianapolis
  • Asia/Calcutta => Should be Asia/Kolkata
  • America/Montreal => Doesn't exist in PHP's current list. Should be America/Toronto I believe.
  • Etc/GMT-8 => Should be mapped to Asia/Hong_Kong or similar.
  • Etc/GMT-2 => Should be mapped to Europe/Amsterdam or similar.

See PHP's deprecated timezone list here: https://www.php.net/manual/en/timezones.others.php
(Which matches up with the tz database. see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)

Ideally all of these legacy timezones should be mapped to currently supported values as listed at e.g. https://www.php.net/manual/en/timezones

Eastern Time (US & Canada) detected as America/Bogota

Browser: Google Chrome 83.0.4103.116
Windows Timezone: (UTC-05:00) Eastern Time (US & Canada)
Detected Timezone: America/Bogota

Eastern Time is currently in daylight savings, which makes it UTC-04:00.
The library reports the timezone as America/Bogota which has the same offset as Eastern Standard Time, but does not have daylight savings.
This then leads to picking up the wrong offset UTC-05:00 instead of the actual offset UTC-04:00.

Can't find variable: Intl

When running tests using Capybara and Poltergeist with v1.0.7 I get the following error: Can't find variable: Intl

This was introduced by 832edfe

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.