Dates in spanish App Engine Standard PHP 5.5

66 views
Skip to first unread message

Ignacio Cuppi

unread,
Feb 26, 2018, 11:46:08 AM2/26/18
to Google App Engine
Hello

In my environment (App Engine Standard PHP 5.5) I have a problem with the language of the dates. I need to show them in Spanish, but I can not make it work.
In my local environment it is translated without problems, but in production it shows the dates in English.

In my php.ini I already put this:
date.timezone = "America / Argentina / Cordoba"
extension
= "intl.so"



And in the code where I need to show the dates in Spanish I tried this:
setlocale (LC_TIME, 'es_AR.UTF-8', 'es_AR', 'es-AR');
echo strftime
("% d of% B", strtotime ($ event_date));



and in this way also:
setlocale (LC_TIME, 'es_ES.UTF-8', 'es_ES', 'es-ES');
echo strftime
("% d of% B", strtotime ($ event_date));



Am I doing something the wrong way?

Thank you very much

Kenworth (Google Cloud Platform)

unread,
Feb 26, 2018, 7:52:40 PM2/26/18
to Google App Engine
AFAIK there is no space between the % and the character (%d not % d). Here is the official documentation for strftime().

A thread like this is off-topic for this forum which is used for general discussion of Google Cloud Platform's products and services. If you need further assistance, please post on StackOverflow which we also monitor. Check out our community support page for the list of tags we monitor.

Ignacio Cuppi

unread,
Feb 27, 2018, 9:13:52 AM2/27/18
to Google App Engine
There is no such space in my code. This text editor must have added it.
Ok, I'm going to ask the same question in StackOverflow

Thank you
Reply all
Reply to author
Forward
0 new messages