Comments (8)
The error is only for the northamerica file for iana.org. It works for all other timezone except for America. So i think it is unable to parse through northamerica file.
from timezone-js.
I believe so. The tz path is the relative path from where u init the timezoneJS.init()
Long Ho
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
On Friday, July 27, 2012 at 1:55 AM, ramkumarc wrote:
I have just added the js. Then added these 2 lines of code
timezoneJS.timezone.zoneFileBasePath = "Timezone"; //Its in the same folder in a separate folder called timezone.
timezoneJS.timezone.init();I get
str.split is not a function
var lines = str.split('\n')line 811 date.js file...
I get that error on load itself.
Can you please help me on this..Browser : Firefox
Is this something to do with the timezone path ??
Reply to this email directly or view it on GitHub:
#39
from timezone-js.
It's pretty unlikely that it's tz specific since the unit tests loads all timezone files. I'll double check if there're new versions of tz files that might break this.
from timezone-js.
Can you provide some sample codes?
from timezone-js.
I am just initializing.. as mentioned those are just the 2 lines of code.
during init date.js is unable to parse north america file. so thats y i get
that error. so if i use any other timezone say europe it is working but it
doesnt work for america.
On Fri, Jul 27, 2012 at 9:35 AM, Long Ho <
[email protected]
wrote:
Can you provide some sample codes?
Reply to this email directly or view it on GitHub:
#39 (comment)
from timezone-js.
Try timezoneJS.timezone.init({ async: false })
. Loading and parsing multiple timezone files is not allowed at this point. Let me know how that goes.
from timezone-js.
Thanks. It works.
On Fri, Jul 27, 2012 at 10:20 AM, Long Ho <
[email protected]
wrote:
Try
timezoneJS.timezone.init({ async: false })
. Loading and parsing
multiple timezone is not allowed at this point. Let me know how that goes.
Reply to this email directly or view it on GitHub:
#39 (comment)
from timezone-js.
Cool :)
from timezone-js.
Related Issues (20)
- setTime unable to progress over DST start (NZST to NZDT) HOT 1
- Invalid region for some timezones HOT 4
- Browserify require timezone-js raise uncaught error HOT 4
- getTimezoneOffset() does not work with DST HOT 2
- Does not work with UTC reliably around DST changes in local timezone HOT 3
- date.setMonth() on a date outputs wrong month HOT 5
- Error: Timezone 'Europe/Copenhagen' is either incorrect, or not loaded in the timezone registry. HOT 1
- Timezone incorrect or not loaded in the timezone registry HOT 1
- incorrect timezone abbreviations HOT 2
- DST problem after upgrading HOT 1
- toISOString returns incorrect value near (but not during) DST change HOT 1
- Incorrect time transition moment HOT 1
- timezoneJS constructor returns wrong offset and timezone HOT 1
- tzdata now available as NPM modules HOT 3
- invalid date HOT 1
- missing timezone names HOT 1
- Error while setting up with Olson files (missing file) HOT 1
- Failure for years < 100 AD HOT 3
- Wrong date conversion for certain years in daylight saving time HOT 1
- Wrong Date conversion for the years below 1947 in Kuwait Timezone(UTC+3). HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from timezone-js.