Incorrect firstDay calculation in some locales
See original GitHub issue- In the Ember application’s initialization phase, globally change the imported Moment library’s locale to a locale where the first day of the week is Monday (e.g.
fr
). Note, this is not theservice:moment
library, rather whatever comes in withimport moment from 'moment';
- Pass into the
power-calendar
component acenter
attribute with the value2016-11-01
, and alocale
attribute with same value from step 1 (e.g.fr
). - View the calendar in a browser.
Observed
November 1st is a Monday.
Expected
November 1st is a Tuesday.
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
How to Count (Days in a Notice)
Counting a 5 day notice: If a landlord is giving a 5-day notice to a tenant, the landlord cannot count the first day...
Read more >Using Date and Date/Time in Formulas
You can use operations like addition and subtraction on Date, Date/Time, and TIme values to calculate a future date or elapsed time.
Read more >Calculate the number of business days between two dates?
It leads to a wrong calculation if for example firstDay and lastDay are both the same Sunday. The method returns 1 in this...
Read more >Excel DATE function with formula examples to calculate ...
What is the best excel formula to use, to calculate the actual date based on the xx number of days + a specific...
Read more >Using Date, Date/Time, and Time Values in Formulas
Date formulas are useful for managing payment deadlines, contract ages, or any other features of your organization that are time or date dependent....
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 Free
Top 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
Yes, I see the failure. Let’s try to fix it.
It does, thanks!