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

Form Fields Factory does not respect LC_LOCALE #145

Closed
digitall-it opened this issue Oct 14, 2016 · 2 comments
Closed

Form Fields Factory does not respect LC_LOCALE #145

digitall-it opened this issue Oct 14, 2016 · 2 comments

Comments

@digitall-it
Copy link
Contributor

digitall-it commented Oct 14, 2016

Form Fields Factory does not respect LC_LOCALE

Please use Zend_Date or at least change in file GatewayFieldsFactory.php

for ($x = 1; $x <= 12; $x++) {
     $months[$x] = date('m - F', mktime(0, 0, 0, $x, 1));
}

to

for ($x = 1; $x <= 12; $x++) {
     $months[$x] = str_pad($x, 2, '0', STR_PAD_LEFT) . " - " . strftime('%B', mktime(0, 0, 0, $x));
}
@dhensby
Copy link
Contributor

dhensby commented Oct 16, 2016

Can you open a PR?

@zanderwar
Copy link
Contributor

I'm about to submit a PR that includes this fix, thanks @digitall-it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants