Date mismatch between Database and Log List
-
Version 1.16.0
Edge on Windows 11. PHP timezone UTC, database and WordPress America/Detroit (-4)
The plugin stores the emails in local timezone ie timestamp = 2026-09-08 14:11:42, (2:11:42pm) but then shifts the displayed value on the log page by the WP timezone (-4 for me) and adds 4 hours, arriving at 6:11:24pm, 4 hours into the future. I resolved the issue by modifying the renderer function in wp-mail-logging\src\Renderer\Column\TimestampColumn.phppublic function render(array $mailArray, $format) {
$rendered = parent::render($mailArray, $format);
$dt = \DateTime::createFromFormat( 'Y-m-d H:i:s', $rendered, wp_timezone() );
return wp_date(
apply_filters( 'wpml_get_date_time_format', '' ),
$dt->getTimestamp()
);
}The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
You must be logged in to reply to this topic.