Do not use 'week year': YYYY
github.com
Do not use 'week year': YYYY
1–10 of 94 posts
Re: Do not use 'week year': YYYY
#2Where can I file a bug report that the class name is wrong "SimpleDateFormat" ;-)
Re: Do not use 'week year': YYYY
#3Where can I file a bug report that the class name is wrong "SimpleDateFormat" ;-)
Re: Do not use 'week year': YYYY
#4Ha, I just fixed a similar thing at work right before Christmas.
If you use java, consider using google error-prone. It has a check for that (and many other things) https://errorprone.info/bugpattern/MisusedWeekYear
Re: Do not use 'week year': YYYY
#5Where can I file a bug report that the class name is wrong "SimpleDateFormat" ;-)
the thing obviously should be called: WYWY
Re: Do not use 'week year': YYYY
#6Ha, I just fixed a similar thing at work right before Christmas. If you use java, consider using google error-prone. It has a check for that (and many other things) https://errorprone.info/bugpattern/MisusedWeekYear
Is there something similar for Python or JavaScript?
Re: Do not use 'week year': YYYY
#7I understand that "week year" is basically a payroll creation, but I am a bit concerned about the last few days of 2021 were logged as 2022, and Jan 1st 2022 was even logged as 2023.
The last few days of 2021 logged as 2022 makes sense for payroll, but how the heck is Jan 1st 2022 put in the 2023 year?
Re: Do not use 'week year': YYYY
#8I don‘t know how many times I used the wrong M in various date formatters.
Format specifiers shouldn’t be case sensitive. Better mnemonics would be even better.
Re: Do not use 'week year': YYYY
#9[deleted]