Okay
  Public Ticket #1418433
Change the departure field initial time slot
Closed

Comments

  •  2
    George started the conversation

    Hi,

    Could please help me how to change the default initial time slot of the departure field to 00:00 when loading the page ?

  •  2
    George replied

    I've found the solution: changing wp-content/plugins/transfers-plugin/includes/widgets/widget-advanced-search.php

    window.datepickerDepartureDateValue = '<?php echo esc_js(date(TRANSFERS_PHP_DATE_FORMAT, strtotime($departure_date))); ?>';

    to

    window.datepickerDepartureDateValue = '<?php echo esc_js(date(TRANSFERS_PHP_DATE_FORMAT_ZERO_TIME, strtotime($departure_date))); ?>';
  •  713
    Theme replied

    Great to hear, thanks for letting us know.

    Best regards,

    themeenergy support