Fixes a problem with publishing data to the wrong dates.