Date and time in FullCalendar incorrect?

0

I have an Angular 5 application that uses the Schedule of #, which is FullCalendar for use in Angular applications, is implemented and working everything correctly except for time and date in the conditions below:

In the event onDayClick () and select () that is when I click on a day or select, in the event returned when picking the date of the day clicked or selected it returns me the following.

Problemsencountered:

  • IfIclickonadaybetweenthehours00:00until02:00itreturnsmethepreviousday,twohourslate.

  • Yourclickonadaybetweenthehours00:00until23:30itreturnsmethecorrectdaytwohourslate.

  • Intheangular-cli.jsonfileI'mloadingthemomentbeforethecalendarandthelocale.

    "styles": [
        "../node_modules/primeng/resources/primeng.min.css",
        "../node_modules/fullcalendar/dist/fullcalendar.min.css",
        "scss/style.scss"
      ],
      "scripts": [
        "../node_modules/jquery/dist/jquery.min.js",
        "../node_modules/moment/moment.js",
        "../node_modules/fullcalendar/dist/fullcalendar.js",
        "../node_modules/fullcalendar/dist/locale/pt-br.js"
      ],
    
        
    asked by anonymous 17.02.2018 / 14:31

    0 answers