4 ms·
Possibly related: 02 Jan 2021 is a part of 2020 week 53. I've noticed a few labeling issues caused by this calendar quirk.
by quesera 6y ago
Possibly related:
02 Jan 2021 is a part of 2020 week 53.
I've noticed a few labeling issues caused by this calendar quirk.
- cperciva 6y agoYep, that's due to someone calling strftime(buf, buflen, "%b %e, %G", &tm); when they should be calling strftime(buf, buflen, "%b %e, %Y", &tm);
- deleted 6y ago[deleted]
- cesarb 6y agoIn Java it's worse, for SimpleDateFormat (the most often used date formatter in Java) YYYY (uppercase) is "week year" (strftime %G), the correct way to get the year (strftime %Y) is yyyy (lowercase). It's very easy to get it wrong; the correct way to get the full ISO timestamp is "yyyy-MM-dd'T'HH:mm:ss.SSSXXX".