title: Calendar in PrimeFaces, time and localization
body: <p>Welcome. I wanted to add the calendar with PrimeFaces on my website. I want to use the TimePicker to also be able to set the time. So looks like my calendar:</p>
  
  <pre><code>&lt;p:calendar value="#{visitMB.visit.dateVisit}" pattern="dd-MM-yyyy HH:mm:ss" locale="tr" navigator="true" showButtonPanel="true" mode="inline" mindate="now"/&gt;
  </code></pre>
  
  <p>When I set the pattern: <code>dd-MM-yyyy</code> without the time everything is added correctly, but when I change to: <code>dd-MM-yyyy HH:mm:ss</code> I get this error: </p>
  
  <blockquote>
    <p>j_idt10:j_idt12: '19-06-2013' could not be understood as a date and
    time.</p>
  </blockquote>
  
  <p>This is when I set the inline mode, when I set the popup is all ok.</p>
  
  <p>I have a problem with the localization my calendar.</p>
  
  <p>I create the file polski.js:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  PrimeFaces.locales['pl'] = {
      closeText: 'Zamknij',
      prevText: 'Poprzedni',
      nextText: 'Następny',
      monthNames: ['Styczeń','Luty','Marzec','Kwiecień','Maj','Czerwiec','Lipiec','Sierpień','Wrzesień','Październik','Listopad','Grudzień'],
      monthNamesShort: ['Sty','Lut','Mar','Kwi','Maj','Cze', 'Lip','Sie','Wrz','Paź','Lis','Gru'],
      dayNames: ['Niedziela','Poniedziałek','Wtorek','Środa','Czwartek','Piątek','Sobota'],
      dayNamesShort: ['Nie','Pon','Wt','Śr','Czw','Pt','So'],
      dayNamesMin: ['N','P','W','Ś','Cz','P','S'],
      weekHeader: 'Tydzień',
      firstDay: 1,
      isRTL: false,
      showMonthAfterYear: false,
      yearSuffix: 'r',
      timeOnlyTitle: 'Tylko czas',
      timeText: 'Czas',
      hourText: 'Godzina',
      minuteText: 'Minuta',
      secondText: 'Sekunda',
      currentText: 'Teraz',
      ampm: false,
      month: 'Miesiąc',
      week: 'Tydzień',
      day: 'Dzień',
      allDayText : 'Cały dzień'
  };
  &lt;/script&gt;
  </code></pre>
  
  <p>and in my page i added:</p>
  
  <pre><code>        &lt;h:outputScript name="C:\Users\Piotr\Desktop\polski.js" /&gt;
          &lt;p:calendar value="#{visitMB.visit.dateVisit}" pattern="dd-MM-yyyy HH:mm:ss" locale="pl" navigator="true"  mode="inline" mindate="now"/&gt;
  </code></pre>
  
  <p>But localization don't work. Why?</p>