Skip to content

Conversation

@boppy
Copy link
Contributor

@boppy boppy commented Feb 5, 2017

Fixing #1342 by adding suggested code by @leofeyer contao/core@094e809#diff-8d2a0620105360ee4698532805680d5d plus specs.

expect(d.format('%M')).toEqual('02');
});
it('should return the month as one digit', function(){
expect(d.format('%n')).toEqual('11');
Copy link

Choose a reason for hiding this comment

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

This test is not really suitable to test %n, is it? You should pick a month < 10 and make sure there is no leading 0.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I should get some more coffee before my first commits on sundays... ;-)
Thx. Fixed.

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.

2 participants