16349: Set time zone to UTC at db connection level.
[arvados.git] / services / api / lib / create_superuser_token.rb
index c1530162e958d2c8e59b2e8283ef073f33ca54e8..57eac048a9595b6d2bb5e139d7a191caa3e70017 100755 (executable)
@@ -40,7 +40,7 @@ module CreateSuperUserToken
           where(user_id: system_user.id).
           where(api_client_id: apiClient.id).
           where_serialized(:scopes, ['all']).
-          where('(expires_at IS NULL OR expires_at > CURRENT_TIMESTAMP AT TIME ZONE ?)', 'UTC').
+          where('(expires_at IS NULL OR expires_at > CURRENT_TIMESTAMP)').
           first
 
         # none exist; create one with the supplied token