fixing the date offset problem (for good I hope)