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

Configuring locale on php:7.4-fpm-alpine #1144

Closed
LucianoVandi opened this issue Mar 27, 2021 · 1 comment
Closed

Configuring locale on php:7.4-fpm-alpine #1144

LucianoVandi opened this issue Mar 27, 2021 · 1 comment
Labels
question Usability question, not directly related to an error with the image

Comments

@LucianoVandi
Copy link

I've added locale support on php:7.4-fpm-alpine, following this guide

It seems to works as expected if i run date on the command line:

$: locale
LANG=
LC_CTYPE=it_IT.UTF-8
LC_NUMERIC=it_IT.UTF-8
LC_TIME=it_IT.UTF-8
LC_COLLATE=it_IT.UTF-8
LC_MONETARY=it_IT.UTF-8
LC_MESSAGES=it_IT.UTF-8
LC_ALL=it_IT.UTF-8

$: date
Sab Mar 27 11:03:21 UTC 2021

But if I run thru php it shows dates in default locale:

$: php -r "setlocale(LC_ALL, 'it_IT.UTF-8'); echo date('r');"
Sat, 27 Mar 2021 11:04:56 +0000

Do I miss any steps from the setup?

@wglambert wglambert added the question Usability question, not directly related to an error with the image label Mar 29, 2021
@wglambert
Copy link

Alpine doesn't really have support for locales #1041 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Usability question, not directly related to an error with the image
Projects
None yet
Development

No branches or pull requests

2 participants