Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/add locale to parse #406

Merged

Conversation

PaulSavignano
Copy link
Contributor

@codecov-commenter
Copy link

Codecov Report

Merging #406 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #406   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           12        12           
  Lines          553       553           
  Branches        64        64           
=========================================
  Hits           553       553           
Impacted Files Coverage Δ
packages/dayjs/src/dayjs-utils.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e8ce35c...13b3da0. Read the comment docs.

@@ -102,7 +102,7 @@ export default class DayjsUtils implements IUtils<defaultDayjs.Dayjs> {
return null;
}

return this.dayjs(value, format);
return this.dayjs(value, format, this.locale);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure this.locale is always defined? Will it crash if locale is not defined?

@dmtrKovalenko
Copy link
Owner

Tested and confirmed it works like a charm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong value of isValid() when using DE
3 participants