File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
lib/dfe/analytics/services Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -46,13 +46,11 @@ def supported_adapter_and_environment?
4646
4747 def fetch_current_timestamp_in_time_zone
4848 utc_timestamp = case connection . adapter_name . downcase
49- when 'postgresql' , 'postgis'
50- connection . select_value ( "SELECT (CURRENT_TIMESTAMP AT TIME ZONE 'UTC')::text AS current_timestamp_utc" )
51- when 'sqlite3' , 'sqlite'
52- connection . select_value ( "SELECT CURRENT_TIMESTAMP AS current_timestamp_utc" )
53- else
54- nil
55- end
49+ when 'postgresql' , 'postgis'
50+ connection . select_value ( "SELECT (CURRENT_TIMESTAMP AT TIME ZONE 'UTC')::text AS current_timestamp_utc" )
51+ when 'sqlite3' , 'sqlite'
52+ connection . select_value ( 'SELECT CURRENT_TIMESTAMP AS current_timestamp_utc' )
53+ end
5654
5755 if utc_timestamp . present?
5856 Time . use_zone ( TIME_ZONE ) do
You can’t perform that action at this time.
0 commit comments