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

PHP 8.1 compatibility / strptime() Deprecated Warning #14

Closed
ghohmann opened this issue May 8, 2024 · 1 comment · Fixed by #15
Closed

PHP 8.1 compatibility / strptime() Deprecated Warning #14

ghohmann opened this issue May 8, 2024 · 1 comment · Fixed by #15
Assignees

Comments

@ghohmann
Copy link

ghohmann commented May 8, 2024

Hi,
another PHP 8.1 compatibility issue.

Calling ?verb=ListRecords&metadataPrefix=oai_dc triggers following warning:
Deprecated: Function strptime() is deprecated in ./Classes/Server.php on line 280.

Since PHP 8.1., function strptime() is deprecated and should be replaced with date_parse_from_format. See
https://www.php.net/manual/en/migration81.deprecated.php#migration81.deprecated.date

Didn't have the time to come up with a quick fix ...

@sebastian-meyer
Copy link
Member

See my comment in #13 which also applies to this issue.

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

Successfully merging a pull request may close this issue.

2 participants