[v4-alpha.2] dateClick event returning one day less than expected
See original GitHub issueBug 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):
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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
It was fixed a week ago, but is not released yet
https://github.com/fullcalendar/fullcalendar/commit/83ffa5a082a1749a58ae568134e487473d6cc432