Skip to content
This repository has been archived by the owner on Mar 29, 2020. It is now read-only.

Ошибка, если установлена не английская локаль у moment #2

Open
alexdeyneko opened this issue May 16, 2018 · 0 comments

Comments

@alexdeyneko
Copy link

Пример с ошибкой:

moment.locale('ru');
const kp = new Kinopoisk();
const kpFilmInfo = await kp.getFilmInfo('320'); // TypeError [ERR_INVALID_CHAR]: Invalid character in header content [\"clientDate\"]

clientDate: moment(new Date()).format('HH:mm dd.MM.YYYY'),

Если поменять формат на HH:mm DD.MM.YYYY, то все работает.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant