Giter VIP home page Giter VIP logo

Comments (7)

twinssbc avatar twinssbc commented on July 24, 2024

@captainmorgan0 As I documented in README, you need to use UTC date for all day events.

If allDay is set to true, the startTime has to be as a UTC date which time is set to 0:00 AM, because in an allDay event, only the date is considered, the exact time or timezone doesn't matter.
For example, if an allDay event starting from 2014-05-09, then startTime is

var startTime = new Date(Date.UTC(2014, 4, 8));

from angularjs-responsivecalendar.

captainmorgan0 avatar captainmorgan0 commented on July 24, 2024

Thanks. That works, and the event shows when viewing by month. However, I don't see the event in week or day view.

from angularjs-responsivecalendar.

twinssbc avatar twinssbc commented on July 24, 2024

@captainmorgan0 You can't see the allDay events or even normal events? Is the view rendered ok? If so, could you check if the events are passed correctly to the selected date range?

from angularjs-responsivecalendar.

captainmorgan0 avatar captainmorgan0 commented on July 24, 2024

In month view, I can see normal events and all day events. In week view and day view I can see normal events, but I can't see all day events.

from angularjs-responsivecalendar.

captainmorgan0 avatar captainmorgan0 commented on July 24, 2024

In you documentation, you say the startTime has to be as a UTC date which time is set to 0:00 AM, However, If I do console.log(new Date(Date.UTC(2014, 4, 8)));, I get the output "Thu May 08 2014 10:00:00 GMT+1000 (AUS Eastern Standard Time)", the time is no 0:00 AM. Does your example need to specify the time as well? Also, that date is not May 8.

from angularjs-responsivecalendar.

twinssbc avatar twinssbc commented on July 24, 2024

You don't need to specify the time part.
The local time Thu May 08 2014 10:00:00 GMT+1000 (AUS Eastern Standard Time) is exactly 2014-05-08 00:00 AM in UTC time.
Also in Date.UTC method, month parameter is 0-11. That's why you pass 4, but actually it's May.

from angularjs-responsivecalendar.

captainmorgan0 avatar captainmorgan0 commented on July 24, 2024

My bad. My css was hiding the all day event in the day and week view.

from angularjs-responsivecalendar.

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.