osCommerce / oscommerce2

osCommerce Online Merchant v2.x
http://www.oscommerce.com
MIT License
281 stars 222 forks source link

Month name not follow the language #585

Open Gergely opened 7 years ago

Gergely commented 7 years ago

I have experienced month name mixing in front page new product module (not all host!)

Full month name, based on the locale

<h3><?= OSCOM::getDef('module_content_new_products_heading', ['current_month' => strftime('%B')]); ?></h3>

PHP Manual: (http://php.net/manual/en/function.setlocale.php)

Warning The locale information is maintained per process, not per thread. If you are running PHP on a multithreaded server API like IIS, HHVM or Apache on Windows, you may experience sudden changes in locale settings while a script is running, though the script itself never called setlocale(). This happens due to other scripts running in different threads of the same process at the same time, changing the process-wide locale using setlocale().