-
Notifications
You must be signed in to change notification settings - Fork 790
IntlDateFormatter::localtime broken example #4636
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
Comments
Actually, even after doing the proposed fix the output is just empty, not the output listed in the manual. cc @devnexen |
It happens that the format should be This can be checked with Also, the output should be changed to: |
Date/time format adjusted to match the specified one in the first line. Last parameter is a reference.
Affected page
https://www.php.net/manual/en/intldateformatter.localtime.php
Issue description
Run the example code, you'll get an error. This makes sense because the $offset is passed as an integer but you can't because the argument is a reference.
Steps to reproduce
Run the examples.
Suggested fix
Probably introduce a variable $offset, set it to 0, and pass that.
The text was updated successfully, but these errors were encountered: