From bf2b75b281d80b40a54617ade82c423516f4950e Mon Sep 17 00:00:00 2001 From: CristianDuta Date: Sat, 5 Aug 2023 02:21:14 +0200 Subject: [PATCH] feat: Add message timestamp to the conversation transcript emails (#7648) Co-authored-by: Cristian Duta Co-authored-by: Pranav Raj S --- .../conversation_transcript.html.erb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/views/mailers/conversation_reply_mailer/conversation_transcript.html.erb b/app/views/mailers/conversation_reply_mailer/conversation_transcript.html.erb index ea253a4c8..7bc14eabe 100644 --- a/app/views/mailers/conversation_reply_mailer/conversation_transcript.html.erb +++ b/app/views/mailers/conversation_reply_mailer/conversation_transcript.html.erb @@ -5,7 +5,7 @@ - + <% if message.content %> <%= ChatwootMarkdownRenderer.new(message.content).render_message %> <% end %> @@ -14,7 +14,13 @@ Attachment [Click here to view] <% end %> <% end %> -
+

+ <% if @inbox.timezone.present? %> + <%= message.created_at.in_time_zone(@inbox.timezone).strftime('%b %d, %I:%M %p %Z') %> + <% else %> + <%= message.created_at.strftime('%b %d, %I:%M %p %Z') %> + <% end %> +

<% end %>