simplify header date generation
tests passing again