From df4cdf1cbae42de7b279f474e2b27fa719a90429 Mon Sep 17 00:00:00 2001 From: yehudah Date: Tue, 11 Aug 2020 20:24:30 +0000 Subject: * Fixed: WordPress 5.5 compatibility * Fixed: Email log filtering * Fixed: Pushover notifications * New: Suggest solution for email delivery errors --- Postman/Postman-Email-Log/PostmanEmailLogController.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Postman/Postman-Email-Log/PostmanEmailLogController.php') diff --git a/Postman/Postman-Email-Log/PostmanEmailLogController.php b/Postman/Postman-Email-Log/PostmanEmailLogController.php index a6e5179..e94eb43 100644 --- a/Postman/Postman-Email-Log/PostmanEmailLogController.php +++ b/Postman/Postman-Email-Log/PostmanEmailLogController.php @@ -97,14 +97,20 @@ class PostmanEmailLogController { $fp = fopen('php://output', 'wb'); $headers = array_keys( PostmanLogFields::get_instance()->get_fields() ); + $headers[] = 'delivery_time'; + fputcsv($fp, $headers); + $date_format = get_option( 'date_format' ); + $time_format = get_option( 'time_format' ); + foreach ( $logs->posts as $log ) { $meta = PostmanLogFields::get_instance()->get($log->ID); $data = []; foreach ( $meta as $header => $line ) { $data[] = $line[0]; } + $data[] = date( "$date_format $time_format", strtotime( $log->post_date ) ); fputcsv($fp, $data); } -- cgit v1.2.3