title: Symfony 4 : localized twig date forms
body: <p>I was used to redefine the date_widget in a form/fields.html.twig file in Symfony 2 and 3 to force twig generated date choices to french order : day month year with this code :</p>
  
  <pre><code>{%- block date_widget -%}
  
  
    {%- if widget == 'single_text' -%}
          {{ block('form_widget_simple') }}
      {%- else -%}
          &lt;div {{ block('widget_container_attributes') }}&gt;
              {{- date_pattern|replace({
                  '{{ year }}':  form_widget(form.year),
                  '{{ month }}': form_widget(form.day),
                  '{{ day }}':   form_widget(form.month),
              })|raw -}}
          &lt;/div&gt;
      {%- endif -%}
  
  {%- endblock date_widget -%}
  </code></pre>
  
  <p>Now with Symfony 4.4, I get automagicaly this french order in my Linux station. But in the production server, the order is again US standard : month day year. If I redefine this order with the code sample above, I get french order in production server, but US order in my station.</p>
  
  <p>Both systems have the php.ini defining <strong>date.timezone = 'Europe/Paris'</strong></p>
  
  <p>Also, the months names are in french and in english according to the month position. So where does TWIG search the locale to define this order?</p>
  
  <p>Thanks</p>