2d6a8eb0 by Marty Penner

One more attempt to get "sent_date" working for the email cron

1 parent 18f9cc2d
...@@ -6,7 +6,6 @@ use Tz\WordPress\CBV; ...@@ -6,7 +6,6 @@ use Tz\WordPress\CBV;
6 use Tz\WordPress\CBV\User; 6 use Tz\WordPress\CBV\User;
7 use Tz\WordPress\Tools; 7 use Tz\WordPress\Tools;
8 use Tz\WordPress\Tools\Sequencer; 8 use Tz\WordPress\Tools\Sequencer;
9 use WP_User;
10 9
11 const OPTION_NAME = 'notif_options'; 10 const OPTION_NAME = 'notif_options';
12 const NOTIFICATION_STATUS_READ = 'read'; 11 const NOTIFICATION_STATUS_READ = 'read';
...@@ -293,7 +292,7 @@ function send_triggered_notification($uid = 0, $trigger = "NO_TRIGGER", $args = ...@@ -293,7 +292,7 @@ function send_triggered_notification($uid = 0, $trigger = "NO_TRIGGER", $args =
293 'attachment2' => $att2, 292 'attachment2' => $att2,
294 'attachment3' => $att3, 293 'attachment3' => $att3,
295 'sent' => (int)$sentSuccessfully, 294 'sent' => (int)$sentSuccessfully,
296 'sent_date' => '' 295 'sent_date' => CBV\tz_date('Y-m-d H:i:s')
297 ], 296 ],
298 [ 297 [
299 '%d', 298 '%d',
......