Comment

Comment by reverend_gonzo

Here's some more information:

The year number of the ISO week very often differs from the Gregorian year number for dates close to 1 January. For example, 29 December 2014 is ISO 2015-W1-1, i.e., it is in year 2015 instead of 2014.

http://en.wikipedia.org/wiki/ISO_week_date

Specifically, you should be using +%Y instead of +%G when passed into date, and 'yyyy' instead of 'YYYY' when used in Java.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton