fix logger datetime treatment