This commit is contained in:
simon lehericey 2018-10-25 17:03:03 +02:00
parent 5aee0e7d40
commit 9475795143
4 changed files with 14 additions and 10 deletions

View file

@ -7,7 +7,11 @@ namespace :'2018_09_12_fix_templates' do
end
# 16:15 in Paris -> 14:15 UTC
DEPLOY_DATETIME = Time.zone.local(2018, 9, 5, 14, 15, 0)
# rubocop:disable Rails/TimeZone
# because we are in a ruby context so Time.zone = nil
DEPLOY_DATETIME = Time.local(2018, 9, 5, 14, 15, 0)
# rubocop:enable Rails/TimeZone
def find_dossiers_with_sent_and_invalid_attestations
invalid_procedures_ids = AttestationTemplate