auto-archive badly occurs in UTC time and not in local time (1 hour too late in France, 10 hours before in Tahiti ;-)
This commit is contained in:
parent
6c2c3aae14
commit
14bc2b99b9
2 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@ class AutoArchiveProcedureJob < ApplicationJob
|
|||
queue_as :cron
|
||||
|
||||
def perform(*args)
|
||||
Procedure.publiees.where("auto_archive_on <= ?", Date.today).each do |procedure|
|
||||
Procedure.publiees.where("auto_archive_on <= ?", Time.zone.today).each do |procedure|
|
||||
procedure
|
||||
.dossiers
|
||||
.state_en_construction
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue