-
-
Notifications
You must be signed in to change notification settings - Fork 339
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
Slug doesn't revert locale correctly #815
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected and Actual Behavior
I am using Slug.php to generate slugs in a phalcon project. The project is configured to display the dates in French. However, after I generate a slug, the dates are in English. If I don't create a slug, the dates are in French as expected.
I expect the date to be always in French.
Locale value (from
setlocale(LC_ALL, '0');
):I use the Slug like this:
Sample controller:
Sample view
I was able to track the error to this line: if I comment it, the locales are correctly restaure. Is the operation it does really required?
Details
The text was updated successfully, but these errors were encountered: