Giter Club home page Giter Club logo

Comments (5)

hellogreg avatar hellogreg commented on May 31, 2024

Having this same issue -- Android only. Multi-day events show up fine, weirdly. But single all-day events are showing up as a day later.

from calendar-phonegap-plugin.

cgwyllie avatar cgwyllie commented on May 31, 2024

+1 Seeing this problem... Any workarounds/fixes for this?

from calendar-phonegap-plugin.

EddyVerbruggen avatar EddyVerbruggen commented on May 31, 2024

Hmm, tried this again and it worked fine on my KitKat device. Perhaps we're passing different things to the plugin? This is what I do to make an all day event for today, so you can compare:

  var startDate = new Date();
  var endDate = new Date();
  endDate.setDate(endDate.getDate()+1);
  // make sure you set these to 0 !
  startDate.setHours(0);
  endDate.setHours(0);
  startDate.setMinutes(0);
  endDate.setMinutes(0);
  startDate.setSeconds(0);
  endDate.setSeconds(0);
  window.plugins.calendar.createEvent('test', 'loc', 'note', startDate, endDate, onSuccess, onError);

from calendar-phonegap-plugin.

cgwyllie avatar cgwyllie commented on May 31, 2024

@EddyVerbruggen Hey, thanks for looking at this..

Sadly I'm still seeing this issue in our app.

Our test device is running Android 5.0.0. Could it be related?

Also, perhaps it's to do with the date we're specifying, we're trying to add 2015-01-01 as an all day event.

Thanks

from calendar-phonegap-plugin.

EddyVerbruggen avatar EddyVerbruggen commented on May 31, 2024

What happens if you try my code sample?

from calendar-phonegap-plugin.

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.