0

I'm using ngQuickDate in my angularJS application. When I pick an absolute date range, I see Korean characters instead of A.M or P.M.

enter image description here

enter image description here

I'm not sure where these characters are coming from. I'm also using ui-grid that has a similar problem: ui-grid symbols issue but I'm not sure if they're related since I only see the Korean characters in ng-quickDate. I'm using Angular 1.4 and the docs for ngQuickDate:https://github.com/adamalbrecht/ngQuickDate say that it's only compatible with Angular 1.2, although the functionality of ngQuickDate seems to be working.

Victor Cui
  • 1,393
  • 2
  • 15
  • 35

1 Answers1

0

It turns out the default Javascript Date.parse() function when parsing the Date/Time was causing the Korean characters to show instead of a.m. or p.m. See the "Smarter Date/Time parsing" section here.

I added moment.js as a dependency in my angularJS app. In the Library code for ngQuickDate, I wrapped the date in a moment() function, and that correctly parsed the Date/time to show a.m / p.m instead of the Korean characters.

Victor Cui
  • 1,393
  • 2
  • 15
  • 35