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(serializer): Properly normalize DateTimeInterface objects #309

Merged
merged 5 commits into from
Dec 15, 2023

Conversation

bpolaszek
Copy link
Contributor

Pull Request

Related issue

Fixes #304

What does this PR do?

  • DateTimeInterface objects are now normalized as unix timestamps integers, in the context of a serialization initiated by this bundle.

PR checklist

Please check if your PR fulfills the following requirements:

  • Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
  • Have you read the contributing guidelines?
  • Have you made sure that the title is accurate and descriptive of the changes?

Thank you so much for contributing to Meilisearch!

@bpolaszek
Copy link
Contributor Author

FYI, I could not run PHPUnit on my side - waiting for #308 to be merged

@bpolaszek bpolaszek force-pushed the fix/date-normalization branch from d091e62 to 0985eb3 Compare December 13, 2023 12:53
@bpolaszek bpolaszek requested a review from norkunas December 13, 2023 12:54
norkunas
norkunas previously approved these changes Dec 13, 2023
@norkunas
Copy link
Collaborator

Not sure how we should tackle compat with 5.4

@bpolaszek
Copy link
Contributor Author

Not sure how we should tackle compat with 5.4

I think the mixed keyword should be avoided, let me give it a try

@norkunas norkunas force-pushed the fix/date-normalization branch from 62f7141 to 845efd5 Compare December 14, 2023 04:22
@norkunas
Copy link
Collaborator

bors merge

meili-bors bot added a commit that referenced this pull request Dec 14, 2023
309: Fix(serializer): Properly normalize `DateTimeInterface` objects r=norkunas a=bpolaszek

# Pull Request

## Related issue
Fixes #304 

## What does this PR do?
- `DateTimeInterface` objects are now normalized as unix timestamps integers, in the context of a serialization initiated by this bundle.

## PR checklist
Please check if your PR fulfills the following requirements:
- [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
- [x] Have you read the contributing guidelines?
- [x] Have you made sure that the title is accurate and descriptive of the changes?

Thank you so much for contributing to Meilisearch!


Co-authored-by: Beno!t POLASZEK <bpolaszek@gmail.com>
@norkunas
Copy link
Collaborator

bors ping

Copy link
Contributor

meili-bors bot commented Dec 14, 2023

pong

Copy link
Contributor

meili-bors bot commented Dec 14, 2023

Timed out.

@norkunas
Copy link
Collaborator

bors try

meili-bors bot added a commit that referenced this pull request Dec 14, 2023
Copy link
Contributor

meili-bors bot commented Dec 14, 2023

try

Timed out.

@norkunas
Copy link
Collaborator

bors try

meili-bors bot added a commit that referenced this pull request Dec 14, 2023
Copy link
Contributor

meili-bors bot commented Dec 14, 2023

try

Timed out.

@norkunas norkunas merged commit e47ae8b into meilisearch:main Dec 15, 2023
7 checks passed
@norkunas
Copy link
Collaborator

Thank you @bpolaszek

@brunoocasali brunoocasali added the bug Something isn't working label Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DateTime objects are serialized as strings
3 participants