If you click the Run Code button, the current week comes to 54?
I have an application that uses the week value to pull up new content each week and was able to update the database to “fix” it. But if anyone has an application that uses the week value, this could potentially cause an issue.
Just wanted to let everyone know. Not sure what docs.lucee.org is running on, but I’ve verified with different versions of Windows server and even spun up one running Lucee 4.5.5 just out of curiosity… happens everywhere.
Hi @LuceeBoston, thank you for submitting. Just checked it also. Running the code now gave me the correct week of 53. But then I ran the code with day 27. December 2020 and it output 54.
Added note to bug report. The JREDateTimeUtil.java getWeekOfYear() code incorrectly pushes all day 1 of week 1 on a leap year to 54 weeks incorrectly. trycf uses UTC (Sunday-12/27/2020=start of week 1). Other locales will be different.