Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
strftime() %P modifier broken in PHP 7.1.7 on Alpine Linux 3.4
# Working
docker run -ti php:7.1.7-fpm-alpine php -r "var_dump(strftime('%c', time()));"
#=> string(24) "Mon Jul 24 18:09:54 2017"
# Also working
docker run -ti php:7.1.7-fpm-alpine php -r "var_dump(strftime('%I:%M%p', time()));"
#=> string(7) "06:12PM"
# Not working
docker run -ti php:7.1.7-fpm-alpine php -r "var_dump(strftime('%I:%M%P', time()));"
#=> bool(false)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.