Giter Site home page Giter Site logo

Comments (6)

ahmontero avatar ahmontero commented on July 30, 2024

Hello, I have tried the calendar on Safari, and the events are showed. I have Safari version 5.1.7.

from bootstrap-calendar.

xyanide avatar xyanide commented on July 30, 2024

On my Safari and my collegues safari it won`t work.

Ive tried a local copy but no sigar. Im using a fresh installation of Safari 5.1.7. The debugger doesn`t show any errors.

If you need more info please do tell!

http://i48.tinypic.com/r8h4y9.png

from bootstrap-calendar.

xyanide avatar xyanide commented on July 30, 2024

I did some more digging, and it seems like Safari doesn`t like the date format that is presented (http://www.bondigeek.com/blog/2011/01/18/handling-ddmmyyyy-date-strings-across-all-browsers/).

Safari returns a NaN for the following functions:
event_date.getMonth()
event_date.getDate()

Safari expects the date to be in the mm/dd/yyyy format, but is presented with a dd/mm/yyyy format.

http://www.bondigeek.com/blog/wp-content/uploads/2011/01/image_thumb3.png

from bootstrap-calendar.

xyanide avatar xyanide commented on July 30, 2024

Alright, final solution :).

You must change the dateformat in the event array supplied on the demo page.

If you change it from:
{"date":"2012-12-12","title":"10"}
to:
{"date":"06/20/2012","title":"10"}

It will work.
I`ll put in a pull request for the fix

from bootstrap-calendar.

rujenner avatar rujenner commented on July 30, 2024

I am using a download of the calendar (Feb 2013 version) and I've run into the problem not showing events in Safari. Is this issue resolved or do I need to modify date formats myself?

from bootstrap-calendar.

xyanide avatar xyanide commented on July 30, 2024

The problem was fixed in the example back then.
I haven`t used this library since then.

You could check if the event dates look like the above solution example?
If that doens`t work i suggest you open a new ticket with your problem description.

from bootstrap-calendar.

Related Issues (6)

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.