question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

nb-rangepicker error when locale language is not en-US

See original GitHub issue

Issue 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

1reaction
ejthancommented, Apr 14, 2020

I got the same issue. is there any quick fix? or do I have to install moment?

0reactions
stanciupaulcommented, Jan 26, 2021

⚠️ Issue is still present on Nebular 6.2.2 for other locales than en-US. Installing @nebular/moment and moment didn’t fix the issue for me.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found