Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

nuDate dd.mm.yy Year-Failure

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
getNo
Posts: 21
Joined: Thu Feb 18, 2021 5:56 pm

nuDate dd.mm.yy Year-Failure

Unread post by getNo »

I found the following Bug.

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

Workaround using YYYY.
You do not have the required permissions to view the files attached to this post.
kev1n
nuBuilder Team
Posts: 4303
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: nuDate dd.mm.yy Year-Failure

Unread post 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.
You do not have the required permissions to view the files attached to this post.
kev1n
nuBuilder Team
Posts: 4303
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: nuDate dd.mm.yy Year-Failure

Unread post by kev1n »

Hi,

Does it work for you?
getNo
Posts: 21
Joined: Thu Feb 18, 2021 5:56 pm

Re: nuDate dd.mm.yy Year-Failure

Unread post 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.
Post Reply