kennethreitz / maya

Datetimes for Humans™
MIT License
3.41k stars 196 forks source link

Not friendly to Chinese #175

Closed EchoShoot closed 5 years ago

EchoShoot commented 5 years ago

2019年5月13日 a common format in Chinese dates, but print(maya.parse('2019年5月13日')) will except ParserError

cognifloyd commented 5 years ago

ParserError is pendulum.parsing.ParserError. maya uses pendulum to parse the string. pendulum will use dateutil to parse the string when pendulum's parsing fails and strict=False (the default in maya).

Therefore, internationalized parse support should be added to pendulum or possibly dateutil.

EchoShoot commented 5 years ago

Thank you for your help