demarches-normaliennes/spec/controllers
simon lehericey 3685c65fb7 [fix #2905] fix DATE_TRUNC usage
DATE_TRUNC is played on the db where the timestamp are stored in utc.
So if a user search for 12/12/2012 in Paris timezone and that we truncate it should do something similar to :

SELECT DATE_TRUNC('day', foo.timezone) from (SELECT timestamp '2012-12-12 00:00:00' AT TIME ZONE 'Europe/Paris') as foo;
=> 2012-12-11

To avoid such pb, I suggest avoiding DATE_TRUNC when exact results are needed
2018-10-26 10:10:20 +00:00
..
admin Time.now => Time.zone.now 2018-10-26 10:10:20 +00:00
administrateur describe '#method' rather than describe '.method' for instance methods 2018-03-20 16:00:30 +01:00
administrations Remove old controller and templates 2018-01-17 18:04:23 +01:00
api/v1 fix spec 2018-10-26 10:10:20 +00:00
champs Fix procedures with multiple dossier link champs 2018-10-24 10:44:28 +02:00
france_connect fix spec 2018-10-26 10:10:20 +00:00
gestionnaires [Fix #1285] Password strength is ensured when saving an administrateur 2018-09-26 09:03:03 +02:00
manager [Fix #1972] Always send mails asynchronously 2018-05-28 12:02:13 +02:00
new_administrateur Profil: display token only once 2018-09-27 10:14:32 +02:00
new_gestionnaire DateTime.now => Time.zone.now 2018-10-26 10:10:20 +00:00
new_user dossier: add page for etablissement 2018-10-17 10:37:06 +02:00
sessions describe '#method' rather than describe '.method' for instance methods 2018-03-20 16:00:30 +01:00
users DateTime.now => Time.zone.now 2018-10-26 10:10:20 +00:00
address_controller_spec.rb AddressController#get → #suggestions 2018-10-16 09:38:53 +02:00
api_controller_spec.rb ApiController: check token validity for a given admin 2018-09-27 10:24:56 +02:00
application_controller_spec.rb Enable Style/WordArray 2018-10-03 12:03:21 +02:00
invites_controller_spec.rb InviteUser → Invite 2018-10-10 12:07:10 +02:00
ping_controller_spec.rb Enable the Layout/EmptyLinesAroundBlockBody cop 2017-06-13 10:35:23 +02:00
root_controller_spec.rb dossiers: change all links to use the new user dossiers list 2018-07-02 13:58:58 +02:00
stats_controller_spec.rb [fix #2905] fix DATE_TRUNC usage 2018-10-26 10:10:20 +00:00
support_controller_spec.rb Enable Style/UnneededInterpolation 2018-10-03 12:03:21 +02:00
users_controller_shared_example.rb Tests: fix users_controller_shared_example 2017-02-28 17:01:58 +01:00
users_controller_spec.rb InviteUser → Invite 2018-10-10 12:07:10 +02:00