2 ms·
Yep, 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);
by cperciva 6y ago
Yep, 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".