• Resolved nbmt345

    (@nbmt345)


    Hello,
    I’d like to change the date format of the mail’s |CHECK_IN| and |CHECK_OUT| to the y-m-d format.
    I would like to know which PHP files to change and how to change them.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Pinpoint World Support

    (@pinpointworld)

    Hi,

    To modify the date the way you want, go to plugin folder includes/reservations/class-backend-reservation-notifications.php line 374 and replace

    $message = str_replace('|'.mb_strtoupper($key).'|',
                                               $DOPBSP->classes->prototypes->setDateToFormat($value,
                                                                                             $settings_calendar->date_type,
                                                                                             array($DOPBSP->text('MONTH_JANUARY'),
                                                                                                   $DOPBSP->text('MONTH_FEBRUARY'),
                                                                                                   $DOPBSP->text('MONTH_MARCH'),
                                                                                                   $DOPBSP->text('MONTH_APRIL'),
                                                                                                   $DOPBSP->text('MONTH_MAY'),
                                                                                                   $DOPBSP->text('MONTH_JUNE'),
                                                                                                   $DOPBSP->text('MONTH_JULY'),
                                                                                                   $DOPBSP->text('MONTH_AUGUST'),
                                                                                                   $DOPBSP->text('MONTH_SEPTEMBER'),
                                                                                                   $DOPBSP->text('MONTH_OCTOBER'),
                                                                                                   $DOPBSP->text('MONTH_NOVEMBER'),
                                                                                                   $DOPBSP->text('MONTH_DECEMBER'))),
                                               $message);

    with

    $message = str_replace('|'.mb_strtoupper($key).'|',
                                               $value,
                                               $message);

    Best Regards,
    Support Team

    Thread Starter nbmt345

    (@nbmt345)

    I was able to change it!
    Thank you very much.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change the date format of emails.’ is closed to new replies.