Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@yoshz
Copy link

@yoshz yoshz commented Jan 7, 2015

The current leap year bug test returns true on our environment (PHP 5.5, Ubuntu Trusty).
However this results in a duplicate date when generatting dates from a daily pattern.

It seems like the bug only occurs when you create a DateTime object from dayofyear number.
But it does not occur when you extract dayofyear from a DateTime object.

See the patch below for a solution.

This is the same problem as issue #38

@yoshz
Copy link
Author

yoshz commented Jan 9, 2015

Could you please check this fix?

@simshaun
Copy link
Owner

simshaun commented Jan 9, 2015

Thx for the report. I'll check it out later today.

simshaun added a commit that referenced this pull request Jan 10, 2015
@simshaun simshaun merged commit be7de6a into simshaun:master Jan 10, 2015
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