0

When I set the date greater than 2030 it changes for 100 years back

asked 2019-08-12 18:47:16 +0800

nikfanton gravatar image nikfanton
1 1

updated 2019-08-13 15:01:23 +0800

For instance: if you set the date 23 Aug 2045 then it becomes 23 Aug 1945

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-08-13 10:01:18 +0800

cor3000 gravatar image cor3000
4606 2 7
ZK Team

Your title/description are slightly contradicting. 100 vs 1000 years, and you didn't provide an example datebox showing this issue. (so please correct/complete your information, if my response is not helpful, also your ZK version might be relevant).

Your issue sounds related to ZK-4235, which contains a reproducing case, do you encounter the same?

The best way to work with dates is to specify a 4 digit year yyyy in the format string. In case of a 2 digit year yy, the year value has to be auto-completed internally. Years above 30 are then interpreted as 19xx. (Which can be configured since ZK 8.6.2).

Do you use 2 digit years?

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2019-08-12 18:47:16 +0800

Seen: 11 times

Last updated: Aug 13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More