jerryscript icon indicating copy to clipboard operation
jerryscript copied to clipboard

wrong output in Date.toLocaleDateString

Open gengjiawen opened this issue 3 years ago • 1 comments

jerry> new Date(2022, 5, 2).toLocaleDateString()
2022-06-01

on chrome:

> new Date(2022, 5, 2).toLocaleDateString()
'6/2/2022'

should be 6-2.

gengjiawen avatar Jun 15 '22 09:06 gengjiawen

In JerryScript toLocaleDateString is simply an alias to toDateString. Locale specific data usually requires a lot of space.

zherczeg avatar Jul 22 '22 06:07 zherczeg