However, that will give the wrong date about 6 hours a year.
You didn't take into account that two days a year, the day
isn't 24 * 3600 seconds, but either 25 * 3600 or 23 * 3600
seconds. That means for the 3 days after daylight switch
over, you're be wrong either the hour before midnight, or
the hour after.