mattlewis92 / angular-bootstrap-calendar

A port of the bootstrap calendar widget to AngularJS (no jQuery required!)
https://mattlewis92.github.io/angular-bootstrap-calendar/
MIT License
798 stars 367 forks source link

All Events Show in the Current Year #642

Closed s2jrchoi closed 6 years ago

s2jrchoi commented 7 years ago

All the events are currently showing in the same current year. When I go to the previous/next year, the same events show up. What am I doing wrong?

My dates come in like this: rawDate = 2018-09-18T04:00:00Z

Then I convert the date as a Date: convertedDate = new Date(rawDate); Mon Sep 18 2018 00:00:00 GMT-0400 (Eastern Daylight Time)

And this 2018 date shows in the 2017 calendar year.

Please help! Thank you!

mattlewis92 commented 7 years ago

Please can you share a plunker or something similar that reproduces your problem as its hard to understand what's going on from the snippet you posted. You can fork a starting plunker from any of the demos. Thanks! 😄

mattlewis92 commented 6 years ago

Closing due to lack of response