16349: Set time zone to UTC at db connection level.
[arvados.git] / services / api / app / controllers / application_controller.rb
index c7d7ad8148246f883d87b37840da5ed3610946d1..83a233cd54681b18b9fb6bb12c72642a2e95cae4 100644 (file)
@@ -386,8 +386,8 @@ class ApplicationController < ActionController::Base
       @read_auths += ApiClientAuthorization
         .includes(:user)
         .where('api_token IN (?) AND
-                (expires_at IS NULL OR expires_at > CURRENT_TIMESTAMP AT TIME ZONE ?)',
-               secrets, 'UTC')
+                (expires_at IS NULL OR expires_at > CURRENT_TIMESTAMP)',
+               secrets)
         .to_a
     end
     @read_auths.select! { |auth| auth.scopes_allow_request? request }