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.

Incorrect firstDay calculation in some locales

See original GitHub issue
  1. 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 the service:moment library, rather whatever comes in with import moment from 'moment';
  2. Pass into the power-calendar component a center attribute with the value 2016-11-01, and a locale attribute with same value from step 1 (e.g. fr).
  3. View the calendar in a browser.

Observed

November 1st is a Monday. screen shot 2016-11-10 at 3 28 24 pm

Expected

November 1st is a Tuesday. screen shot 2016-11-10 at 3 28 46 pm

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
cibernoxcommented, Nov 11, 2016

Yes, I see the failure. Let’s try to fix it.

0reactions
nwhittakercommented, Nov 11, 2016

It does, thanks!

Read more comments on GitHub >

github_iconTop 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 >

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