question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[v4-alpha.2] dateClick event returning one day less than expected

See original GitHub issue

Bug Report

Hi! I’m using fullcalendar with Angular and I noticed that when you click some calendar date and dateClick event fires, it’s returning one day less than expected. For example, if you click on 28-11-2018 it returns 27-11-2018.

You can see a repro here (you can see the event.date log in the console):

https://stackblitz.com/edit/angular-rg444q

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Hoakiecommented, Jan 1, 2019

@arshaw, The issue I noticed is not handling the dateClick event, but rather when using navLinks:true. When you select the link in the calendar, it takes you to the previous day.

https://codepen.io/hoakie/pen/ZVvzrg

0reactions
acerixcommented, Mar 14, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to validate date with format "mm/dd/yyyy" in JavaScript?
IMO the leap day should be validated. The validation function must account for the possibility that the input string doesn't match the expected...
Read more >
XPath and XQuery Functions and Operators 3.1 - W3C
This document defines constructor functions, operators, and functions on the datatypes defined in [XML Schema Part 2: Datatypes Second Edition] ...
Read more >
Running a t-test in Excel
Click on the “Data” menu, and then choose the “Data. Analysis” tab. You will now see a window listing the various statistical tests...
Read more >
Excel FORECAST functions with formula examples - Ablebits
The FORECAST function in Excel is used to predict a future value by using linear regression. In other words, FORECAST projects a future...
Read more >
Regular Expressions :: Eloquent JavaScript
function getDate(string) { let [_, month, day, year] = /(\d{1,2})-(\d{1,2})-(\d{4})/.exec(string); return new Date(year, month - 1, day); } ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found