• Resolved dbrosemer

    (@dbrosemer)


    Good evening, team. We spotted a timezone issue with the email notifications that Hydra was sending to hosts and attendees. It wasn’t localizing the attendee times correctly. I’ve prepared the following patch. Please consider applying it:

    --- wp-content/plugins/hydra-booking/includes/hooks/MailHooks.php.orig  2026-06-25 18:47:35
    +++ wp-content/plugins/hydra-booking/includes/hooks/MailHooks.php 2026-06-25 18:47:40
    @@ -834,13 +834,15 @@
    }

    $time_format = get_option( 'time_format', 'g:i a' );
    - $timestamp = strtotime( '1970-01-01 ' . $time_value );
    + // $time_value is already the attendee's local wall-clock time. Parse and
    + // format it in UTC so wp_date() does not shift it into the site timezone.
    + $timestamp = strtotime( '1970-01-01 ' . $time_value . ' UTC' );

    if ( false === $timestamp ) {
    return $time_value;
    }

    - return wp_date( $time_format, $timestamp );
    + return wp_date( $time_format, $timestamp, new \DateTimeZone( 'UTC' ) );
    }

    /**
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Joynal Abedin

    (@joynalabedin)

    Hello @dbrosemer,
    Thank you for reaching out to us and bringing this to our attention.
    I have taken note of this and forwarded it to the dev team for review.
    If you have any other questions or need assistance, please let us know.
    We would be happy to help.

    Plugin Support Joynal Abedin

    (@joynalabedin)

    Hello @dbrosemer,
    I hope you are doing well.
    The timezone issue has been fixed and released.
    Please update the plugins and check.
    If you have any other concerns or need assistance, please let us know.
    We are here to help.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.