Avoid problem with offer publication date
Refactoring (code simplification)