oria / gridx

Just another powerful Dojo grid
Other
162 stars 78 forks source link

Date incorrectly show in Grid when data feed is "0005-06-14T00:00:00.000" #424

Open kiett opened 6 years ago

kiett commented 6 years ago

We (IBM) are using GridX's version 1.3.8. When we feed the grid with "0005-06-14T00:00:00.000", it will show 6/14/05,. But when we feed the grid with "2018-06-14T00:00:00.000", it will show 6/14/2018. For the case year 0005, I'd expect the grid show same four digit 0005, instead of 05 for consistency.

Is this issue fix in the latest version? If not, is there a work around for this issue?

Thanks, Kiet

jsonn commented 6 years ago

What decorator are you using for the formatting? I'm not sure that Javascript will handle date parsing for anything before 1582 correctly and quite like for a lot of dates before 1970 too.

kiett commented 6 years ago

@jsonn - is there document to show how to use decorator for formatting?