Change deliver email time to 00:00

This commit is contained in:
BoHung Chiu 2020-11-03 20:59:13 +08:00
parent b6067c82b8
commit a2d34148b2
1 changed files with 1 additions and 0 deletions

View File

@ -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",