From a2d34148b29c1778cbbf62a769f714bcf1b0eb79 Mon Sep 17 00:00:00 2001 From: bohung Date: Tue, 3 Nov 2020 20:59:13 +0800 Subject: [PATCH] Change deliver email time to 00:00 --- app/models/concerns/venue_link_file.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/concerns/venue_link_file.rb b/app/models/concerns/venue_link_file.rb index cc0ea90..b970443 100644 --- a/app/models/concerns/venue_link_file.rb +++ b/app/models/concerns/venue_link_file.rb @@ -83,6 +83,7 @@ module VenueLinkFile if self.send(v.name+'_reminder') title = venue_main.title + ' ' + self.case_no.to_s + ' ' + self.get_trans(v.name) send_time = self.send(v.name)-self.send(v.name+'_reminder_day').day rescue nil + send_time = DateTime.parse(send_time.strftime("%Y/%m/%d 00:00:00 %z")) rescue send_time if !send_time.nil? new_email = Email.create(mail_to: manager_emails, module_app_key:"venue_management",