Fix strftime issues with datepicker