pellepim / jstimezonedetect Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
The documentation says "There is an updated demo running on: http://pellepim.bitbucket.org/jstz/.", but this URL appears dead.
Hi,
tags corresponding to npm registry are missing, could you add them? At least v1.0.7 ?
After recent Windows upgrade jstz library is failing on Windows server 2012 R2 and Windows 8.1
https://support.microsoft.com/en-us/help/4489881/windows-8-1-update-kb4489881
Other libraries using Intl also are facing this issue and have wrapped their code in try catch to avoid this.
Shoeb
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?
Half of this was posted as an Issue on BitBucket: https://bitbucket.org/pellepim/jstimezonedetect/issues/177/asia-calcutta-this-is-wrong
The spellings of Kolkata and Kathmandu are Anglicized. I haven't checked others, but these were next to each other.
These names are required to be interpreted correctly by PHP:
I notice there has not been any commits for a year and issues have not been responded to.
Is this project now abandoned?
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:
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
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.