Skip to content

Issue with different time zones between environments #387

@martinboucek

Description

@martinboucek

File /Analytics/DataverseLink/EDL_To_SynapseLinkDV_DBSetup/Step1_EDL_To_SynapseLinkDV_CreateUpdate_SetupScript.sql is using getdate() for declaration of the newdatetimemarker which can cause an issue by transferring data between environments with different time zones.
My example is: Synapse link uses UTC time, but destination server was set up with Paris/Berlin... time zone.

I mean this piece of code:
declare @newdatetimemarker datetime2 = getdate();

I would use getutcdate() instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions