Skip to content

Commit 6488f7f

Browse files
authored
Merge pull request #689 from mrgchr/master
[SSIS][WWI]Cutoff TIme should be UTC date time
2 parents d2b8590 + 5824a11 commit 6488f7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/databases/wide-world-importers/wwi-ssis/wwi-ssis/DailyETLMain.dtsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
<DTS:Variables />
7070
<DTS:ObjectData>
7171
<ExpressionTask
72-
Expression="@[User::TargetETLCutoffTime] = DATEADD(&quot;Minute&quot;, -5, GETDATE() )" />
72+
Expression="@[User::TargetETLCutoffTime] = DATEADD(&quot;Minute&quot;, -5, GETUTCDATE() )" />
7373
</DTS:ObjectData>
7474
</DTS:Executable>
7575
<DTS:Executable
@@ -86,7 +86,7 @@
8686
<DTS:ObjectData>
8787
<SQLTask:SqlTaskData
8888
SQLTask:Connection="{7C3E3ECC-C5AD-4675-9618-FC08465F8BC9}"
89-
SQLTask:SqlStatementSource="DECLARE @YearNumber int = YEAR(SYSDATETIME());&#xA;&#xA;EXEC Integration.PopulateDateDimensionForYear @YearNumber;" xmlns:SQLTask="www.microsoft.com/sqlserver/dts/tasks/sqltask" />
89+
SQLTask:SqlStatementSource="DECLARE @YearNumber int = YEAR(SYSUTCDATETIME());&#xA;&#xA;EXEC Integration.PopulateDateDimensionForYear @YearNumber;" xmlns:SQLTask="www.microsoft.com/sqlserver/dts/tasks/sqltask" />
9090
</DTS:ObjectData>
9191
</DTS:Executable>
9292
<DTS:Executable

0 commit comments

Comments
 (0)