bugfix: used if rather than unless inside prompt_date