[ARVADOS] updated: 1.3.0-2763-geaf821393

Git user git at public.arvados.org
Tue Jul 21 21:30:51 UTC 2020


Summary of changes:
 services/api/config/initializers/time_zone.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

       via  eaf821393353c7980c7ad808330a73c8db5769a3 (commit)
      from  519d7f53017480575f92c0fc7222dafc3b3cc85e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit eaf821393353c7980c7ad808330a73c8db5769a3
Author: Lucas Di Pentima <lucas at di-pentima.com.ar>
Date:   Tue Jul 21 18:30:21 2020 -0300

    16470: Tests setting time zone via ActiveRecord. (WIP)
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas at di-pentima.com.ar>

diff --git a/services/api/config/initializers/time_zone.rb b/services/api/config/initializers/time_zone.rb
index 1ba216457..05ea7b9a9 100644
--- a/services/api/config/initializers/time_zone.rb
+++ b/services/api/config/initializers/time_zone.rb
@@ -12,5 +12,5 @@ ActiveRecord::Base.connection.class.set_callback :checkout, :after do
   # earlier clock time, and its time zone is dropped when comparing to
   # a "timestamp without time zone").
 
-  raw_connection.exec("SET TIME ZONE 'UTC'")
+  ActiveRecord::Base.connection.exec_query("SET TIME ZONE 'UTC'")
 end

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list