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 PHP bug 66019: YYYY-MM-DDTHH is not supported #106

Closed
wants to merge 4 commits into from

Conversation

cmb69
Copy link
Contributor

@cmb69 cmb69 commented Apr 7, 2021

No description provided.

@cmb69 cmb69 marked this pull request as ready for review April 7, 2021 14:13
parse_date.re Show resolved Hide resolved
LONGS_EQUAL(1978, t->y);
LONGS_EQUAL(12, t->m);
LONGS_EQUAL(22, t->d);
LONGS_EQUAL(23, t->h);
Copy link
Owner

Choose a reason for hiding this comment

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

Please add new tests at the end, as now the order of the original iso8601date_XX ones is now not sequential. I'd probably use timetiny24 as prefix. And you probably should also test that t->i nmd t->s are 0.

I would also add the following tests:

  • T9
  • T23Z
  • 1978-12-22T9
  • 1978-12-22T23Z
  • 1978-12-03T09-03 (and add assert for the timezone offset and abbreviation)
  • T09-03 (and add assert for the timezone offset and abbreviation)

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've did that now. Could you please check the assertions? I think that t->tz_abbr should be NULL, but I'm not 100% sure.

@cmb69 cmb69 requested a review from derickr April 12, 2021 13:52
derickr added a commit that referenced this pull request Apr 7, 2022
@derickr
Copy link
Owner

derickr commented Apr 7, 2022

I've merged this after a rebase. And will soon merge this into PHP 8.1/master.

@derickr derickr closed this Apr 7, 2022
@cmb69 cmb69 deleted the cmb/66019 branch April 7, 2022 15:14
@derickr
Copy link
Owner

derickr commented May 20, 2022

Now also merged into PHP (8.1).

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.

None yet

2 participants