Page 1 of 1

nuDate dd.mm.yy Year-Failure

Unread postPosted: Fri May 28, 2021 5:51 pm
by getNo
I found the following Bug.

When only showing 2 Years digits, the popup Calendar shows the wrong century.

Workaround using YYYY.

Re: nuDate dd.mm.yy Year-Failure

Unread postPosted: Fri May 28, 2021 6:27 pm
by kev1n
Adding

Code: Select all
if (d.y.length == 2) d.y = '20' + d.y;


after

Code: Select all
d.y    = v[i];


should fix it.

https://github.com/nuBuilder/nuBuilder- ... s.js#L1057

This will treat a two digit year as in the 20th century.

You will need to log in again after modifying that file.

Re: nuDate dd.mm.yy Year-Failure

Unread postPosted: Sat Jun 12, 2021 4:17 pm
by kev1n
Hi,

Does it work for you?

Re: nuDate dd.mm.yy Year-Failure

Unread postPosted: Wed Jul 07, 2021 8:28 pm
by getNo
Hey, sorry for the late response.

i used YYYY as workaround so didnt tested your code yet. my post was just a report for you.