Fix date/time placeholders in generate_filename()