[wp-trac] [WordPress Trac] #40390: Wrong time (and date) in mail header send by phpmailer

WordPress Trac noreply at wordpress.org
Tue Jul 15 21:31:05 UTC 2025


#40390: Wrong time (and date) in mail header send by phpmailer
--------------------------+------------------------------
 Reporter:  Drivingralle  |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Mail          |     Version:  4.7.3
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by SirLouen):

 == Reproduction Report
 === Description
 ❌ This report can't validates that the issue can be reproduced.

 === Environment
 - WordPress: 6.9-alpha-60093-src
 - PHP: 8.2.29
 - Server: nginx/1.29.0
 - Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.29)
 - Browser: Chrome 138.0.0.0
 - OS: Windows 10/11
 - Theme: Twenty Twenty-Five 1.2
 - MU Plugins: None activated
 - Plugins:
   * Micro Email Testing 1.0.0
   * Test Reports 1.2.0

 === Testing Instructions
 1. Send an email with certain Timezone
 2. ❌ Check the email
 {{{
 Reported:
 Received: from localhost (wordpress-develop-php-1.wordpress-
 develop_wpdevnet. [172.18.0.4])
         by 99182fc8e321 (Mailpit) with SMTP
         for <test at example.com>; Tue, 15 Jul 2025 21:23:51 +0000 (UTC)
 Date: Tue, 15 Jul 2025 21:23:51 +0000
 }}}

 3. Change the Timezone
 4. ❌ Check the raw email:
 {{{
 Received: from localhost (wordpress-develop-php-1.wordpress-
 develop_wpdevnet. [172.18.0.4])
         by 99182fc8e321 (Mailpit) with SMTP
         for <test at example.com>; Tue, 15 Jul 2025 21:24:39 +0000 (UTC)
 Date: Tue, 15 Jul 2025 21:24:39 +0000
 }}}

 === Actual Results
 - ❌ Error condition can't be reproduced.

 === Additional Notes
 1. Long time has passed, and it seems that all the referenced tickets have
 been closed.
 2. Regardless of the timezone selected, emails are always being sent in
 UTC time. Job for the MUA to present the right time for the user based on
 the timezone configured in the client.
 3. Considering this variables, I'm closing this as `worksforme`. If new
 scenarios happen to arise, please provide some screenshots, and reopen
 this ticket witch such information. Also please provide raw email data
 along with the shots.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/40390#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list