Skip to content

Commit

Permalink
2.3.7401.27731 - fixed an issue where agent jobs would not be picked …
Browse files Browse the repository at this point in the history
…up on time in non UTC timezones
  • Loading branch information
marcingminski committed Apr 6, 2020
1 parent 0435872 commit 59fc152
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ If there is a report assosiated with this check, details of the failures should
this may cause some rare overlap but better to capture failed job twice than miss it */
,@check_query = 'select @output=count(*)
from msdb.dbo.sysjobhistory
where msdb.dbo.agent_datetime(run_date, run_time) >= dateadd(second,-1,''{LAST_CHECK_DATE}'')
where DATEADD(second, DATEDIFF(second, GETDATE(), GETUTCDATE()), msdb.dbo.agent_datetime(run_date, run_time)) >= dateadd(second,-1,''{LAST_CHECK_DATE}'')
and run_status = 0
and step_id <> 0'
,@check_frequency_minutes = NULL
Expand Down
Binary file modified SQLWATCHDB/Scripts/Pre-Deployment/SetDacVersion.sql
Binary file not shown.

0 comments on commit 59fc152

Please sign in to comment.