Change deliver email time to 00:00
This commit is contained in:
parent
b6067c82b8
commit
a2d34148b2
|
@ -83,6 +83,7 @@ module VenueLinkFile
|
||||||
if self.send(v.name+'_reminder')
|
if self.send(v.name+'_reminder')
|
||||||
title = venue_main.title + ' ' + self.case_no.to_s + ' ' + self.get_trans(v.name)
|
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 = 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?
|
if !send_time.nil?
|
||||||
new_email = Email.create(mail_to: manager_emails,
|
new_email = Email.create(mail_to: manager_emails,
|
||||||
module_app_key:"venue_management",
|
module_app_key:"venue_management",
|
||||||
|
|
Loading…
Reference in New Issue