nb-rangepicker error when locale language is not en-US
See original GitHub issueIssue type
I’m submitting a … (check one with “x”)
- bug report
- feature request
Issue description
Current behavior:
When language is en-US, the rangepicker is OK, and the date range I selected would be inserted the input element, but after I change language to zh-cn or fr, the value I selected would not be shown on the input element.
Expected behavior:
It should be OK when locale language is not en-US Steps to reproduce:
I reproduce this issue here Related code:
<nb-layout>
<nb-layout-header fixed>
<!-- Insert header here -->
</nb-layout-header>
<nb-layout-column>
<div style="text-align: center;">
<input style="width: 300px;" nbInput [nbDatepicker]="datepicker">
<nb-datepicker #datepicker></nb-datepicker>
</div>
<br>
<div style="text-align: center; ">
<input style="width: 300px;" nbInput placeholder="Form Picker" [nbDatepicker]="formpicker">
<nb-rangepicker #formpicker></nb-rangepicker>
</div>
</nb-layout-column>
<nb-layout-footer fixed>
<!-- Insert footer here -->
</nb-layout-footer>
</nb-layout>
Other information:
npm, node, OS, Browser
node version: 10.15.3
os: mac mojavo
browser: chorme
Angular, Nebular
angular: 7.2.0
nebular: 3.5.0
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:7
Top Results From Across the Web
Wrong locale display text of DateP… | Apple Developer Forums
the reproduce code is very simple, just drag a DatePicker and set locale to another one(not default or en, zh-CN here), you will...
Read more >Angular 9 Locale data for 'en-US' cannot be found. No locale ...
The documentation clearly states en-US is imported by default. To make things worse, when i change sourceLocale to any other language (say 'de') ......
Read more >Please add the new rif_Ma locale - Launchpad Bugs
I saw that you have requested that Tarifit is added to the Launchpad languages. Some hints before you proceed: You should keep in...
Read more >Date picker does not work correctly if the system language is ...
Date picker does not work correctly if the system language is Portuguese ... Bug JRASERVER-21174 - Date and Date Time pickers return incorrect...
Read more >Powerapps DatePicker Issue with Different Language
I updated my datepicker control to have same settings as that of yours. Now it is not returning any random value but it...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I got the same issue. is there any quick fix? or do I have to install moment?
⚠️ Issue is still present on Nebular 6.2.2 for other locales than
en-US
. Installing@nebular/moment
andmoment
didn’t fix the issue for me.