React-datepicker: Time selector does not reflect locale with timeFormat set

Created on 24 Mar 2019  路  4Comments  路  Source: Hacker0x01/react-datepicker

Expected behavior

The time selector shows the correct localized time format if a locale is given and the timeFormat property as the "p"-value set.

For a "de" locale it would be "13:00" instead of "01:00 PM".

Actual behavior

The time selector gets not localized and just shows default behavior.

Bildschirmfoto am 2019-03-24 um 19 25 49

Steps to reproduce

<DatePicker className="form-control form-control-sm"
  selected={date}
  locale={de}
  showTimeSelect
  showTimeSelectOnly
  timeFormat="p"
  dateFormat="p"
  timeIntervals={15}
  timeCaption="Uhrzeit" />

Most helpful comment

@martijnrusschen Are there plans to fix this issue ? By when can we expect this to be resolved ?

All 4 comments

@martijnrusschen Are there plans to fix this issue ? By when can we expect this to be resolved ?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Hey, seems I am not the only one with this issue.

This is fixed now by a newer version. Thank you very much. :)

Was this page helpful?
0 / 5 - 0 ratings