Bad offset in processing date