strftime does not respect user set locales on OSX #12913

nijel opened this Issue Jan 21, 2017 · 0 comments


None yet

1 participant

nijel commented Jan 21, 2017

I've discovered this when adding tests to run on OSX - the date is there printed as "Jan 01, 2000 at 10:00 上午", even if we set locales to English. Simply it always seems to follow system locale...

See also

@nijel nijel added the bug label Jan 21, 2017
@nijel nijel added this to the 4.7.0 milestone Jan 21, 2017
@nijel nijel self-assigned this Jan 21, 2017
@nijel nijel added a commit that closed this issue Jan 21, 2017
@nijel nijel Handle AM/PM marks in date on our own
This is same as with months and days in week - we can not rely on the
PHP providing sane result. Also this way we can properly translate it to
all supported languages.

For example on OS X, the strftime function does not seem to respect PHP
locales and always use system ones.

Fixes #12913

Signed-off-by: Michal Čihař <>
@nijel nijel closed this in 3934024 Jan 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment