From a53b57c8a2298ea04a45680cee00c5a9fec44689 Mon Sep 17 00:00:00 2001 From: RMcGirr83 Date: Thu, 16 Apr 2015 11:04:01 -0400 Subject: [PATCH] [ticket/13759] Take post_time into account PHPBB3-13759 --- phpBB/includes/functions_posting.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index a06d6f4c35..fdf09aab7f 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -1542,7 +1542,14 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u return false; } - $current_time = time(); + if (!empty($data['post_time'])) + { + $current_time = $data['post_time']; + } + else + { + $current_time = time(); + } if ($mode == 'post') {