Skip to content

Conversation

@Sebbo94BY
Copy link
Collaborator

Simplifies the conversion of seconds to a human readable format by using a PHP built-in function. This also solves the conversion problem reported in the issue #194.

See https://www.php.net/manual/de/class.datetime.php and https://php.watch/versions/8.1/deprecate-implicit-conversion-incompatible-float-string for further information.

Closes #194

@Sebbo94BY Sebbo94BY requested a review from ronindesign April 19, 2023 21:12
@Sebbo94BY Sebbo94BY added bug Confirmed as a valid bug and requires fix. compatibility Issue with (unsupported) version, tool, or anything outside scope of framework php8.1 PHP 8.1 specific php8.2 PHP 8.2 specific labels Apr 19, 2023
@Sebbo94BY
Copy link
Collaborator Author

I guess, we can simply merge this change or what do you think about it @ronindesign ?

@ronindesign ronindesign merged commit e133806 into planetteamspeak:dev Aug 3, 2023
@ronindesign
Copy link
Collaborator

Thank you for the contribution!

@Sebbo94BY Sebbo94BY deleted the Issue-194-Implicit-conversion-from-float-to-int-loses-precision branch August 3, 2023 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Confirmed as a valid bug and requires fix. compatibility Issue with (unsupported) version, tool, or anything outside scope of framework php8.1 PHP 8.1 specific php8.2 PHP 8.2 specific

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants