mirror of
https://github.com/internetee/registry.git
synced 2025-08-02 16:02:03 +02:00
Converted to use Rails Time.zone only to honor app time zone
This commit is contained in:
parent
a42136268f
commit
e1041da50f
16 changed files with 34 additions and 31 deletions
|
@ -81,9 +81,9 @@ class Contact < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def destroy_orphans
|
||||
logger.info "#{Time.now.utc} - Destroying orphaned contacts\n"
|
||||
logger.info "#{Time.zone.now.utc} - Destroying orphaned contacts\n"
|
||||
count = find_orphans.destroy_all.count
|
||||
logger.info "#{Time.now.utc} - Successfully destroyed #{count} orphaned contacts\n"
|
||||
logger.info "#{Time.zone.now.utc} - Successfully destroyed #{count} orphaned contacts\n"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue