Code Monkey home page Code Monkey logo

Comments (8)

ramkumarc avatar ramkumarc commented on August 18, 2024

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.

longlho avatar longlho commented on August 18, 2024

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.

longlho avatar longlho commented on August 18, 2024

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.

longlho avatar longlho commented on August 18, 2024

Can you provide some sample codes?

from timezone-js.

ramkumarc avatar ramkumarc commented on August 18, 2024

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.

longlho avatar longlho commented on August 18, 2024

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.

ramkumarc avatar ramkumarc commented on August 18, 2024

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.

longlho avatar longlho commented on August 18, 2024

Cool :)

from timezone-js.

Related Issues (20)

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.