Windows 10: Unexpected results while converting time zones using SQL Server 2017 on Windows Server 2016

Discus and support Unexpected results while converting time zones using SQL Server 2017 on Windows Server 2016 in Windows 10 Customization to solve the problem; I was trying out the time zone conversions in SQL Server 2017 and ran across some unexpected results. The same anomalies show up in PowerShell, since... Discussion in 'Windows 10 Customization' started by R,S, Mar 30, 2019.

  1. R,S
    R,S Win User

    Unexpected results while converting time zones using SQL Server 2017 on Windows Server 2016


    I was trying out the time zone conversions in SQL Server 2017 and ran across some unexpected results. The same anomalies show up in PowerShell, since they are both using the underlying time zone information in Windows.


    Here is a good example in PowerShell:


    $d = Get-Date '2019-10-26 20:30:00 -04:00' # Eastern Time doesn't fall back to -05:00 until November

    @( [System.TimeZoneInfo]::ConvertTimeBySystemTimeZoneId($d, 'W. Europe Standard Time'), [System.TimeZoneInfo]::ConvertTimeBySystemTimeZoneId($d, 'Central Europe Standard Time'), [System.TimeZoneInfo]::ConvertTimeBySystemTimeZoneId($d, 'E. Europe Standard Time') )



    (There are two lines of code there - the first one starting with "$d" and the second one starting with "@(".)


    Unexpected results while converting time zones using SQL Server 2017 on Windows Server 2016 9e2cfc85-7afa-4c66-ac7a-c4fbd0641221?upload=true.png


    The same example in SQL Server 2017:


    declare @nyTime datetimeoffset = convert(datetimeoffset, N'2019-10-26 20:30:00.000000 -04:00', 121);

    select @nyTime at time zone N'W. Europe Standard Time' [W. Europe Time],
    @nyTime at time zone N'Central Europe Standard Time' [Central Europe Time],
    @nyTime at time zone N'E. Europe Standard Time' [E. Europe Time];


    Unexpected results while converting time zones using SQL Server 2017 on Windows Server 2016 00a19b8b-1126-4d10-ad8b-51d541d0cc4c?upload=true.png


    The result in all three time zones is 2:30 am local time. My understanding is that all of the EU changes to or from Summer time at the same time (through the end of March 2021, at least [end of time changes in EU]), so shouldn't the local time in the adjacent time zones always have offsets that are one hour apart, even on the day that the offsets change?

    The server is running Windows Server 2016 with the February 2019 update KB4487006.


    ***Original title: Unexpected results from time zone conversions***

    :)
     

  2. Downgrade of SQL Server 2017 to SQL Server 2012

    Hi,

    Please suggest me how can i get the licence for SQL Server 2012.

    Currently we have SQL Server 2017 Volume licencing.

    Regards,

    Praveen.
     
    PraveenkumarOPP, Mar 30, 2019
    #2
  3. Brink Win User
    First release candidate of SQL Server 2017 now available


    Source: First release candidate of SQL Server 2017 now available | SQL Server Blog


    See also: What's new in SQL Server 2017 RC1 for Analysis Services | Analysis Services Team Blog
     
    Brink, Mar 30, 2019
    #3
  4. Brink Win User

    Unexpected results while converting time zones using SQL Server 2017 on Windows Server 2016

    Cumulative Update #1 for SQL Server 2016 SP1


    Source: Cumulative Update #1 for SQL Server 2016 SP1 | SQL Server Release Services
     
    Brink, Mar 30, 2019
    #4
Thema:

Unexpected results while converting time zones using SQL Server 2017 on Windows Server 2016

Loading...
  1. Unexpected results while converting time zones using SQL Server 2017 on Windows Server 2016 - Similar Threads - Unexpected results while

  2. SQL Server 2016 is support on Win 11 SQL Server 2016 was installed on Win 10 and then...

    in Windows 10 Gaming
    SQL Server 2016 is support on Win 11 SQL Server 2016 was installed on Win 10 and then...: Hi,We installed SQL Server 2016 along with the POS application on Windows 10 machines. We are planning to upgrade the systems to Windows 11 and continue using SQL Server 2016 without upgrade to higher versionwith the POS application.Could you please suggest how we can...
  3. SQL Server 2016 is support on Win 11 SQL Server 2016 was installed on Win 10 and then...

    in Windows 10 Software and Apps
    SQL Server 2016 is support on Win 11 SQL Server 2016 was installed on Win 10 and then...: Hi,We installed SQL Server 2016 along with the POS application on Windows 10 machines. We are planning to upgrade the systems to Windows 11 and continue using SQL Server 2016 without upgrade to higher versionwith the POS application.Could you please suggest how we can...
  4. When Microsoft release security updates for SQL Server 2016, 2017 & 2019?

    in Windows 10 Gaming
    When Microsoft release security updates for SQL Server 2016, 2017 & 2019?: Hi Tim Microsoft,Please let me know, when SQL Server 2016, 2017 & 2019 release for security update patch? https://answers.microsoft.com/en-us/windows/forum/all/when-microsoft-release-security-updates-for-sql/cc395431-4830-4582-8cf8-fd1ad518a888
  5. When will Microsoft release security updates for SQL Server 2016, 2017 & 2019?

    in Windows 10 Gaming
    When will Microsoft release security updates for SQL Server 2016, 2017 & 2019?: Hi Tim Microsoft,Please let me know, when SQL Server 2016, 2017 & 2019 release for security update patch? https://answers.microsoft.com/en-us/windows/forum/all/when-will-microsoft-release-security-updates-for/cc395431-4830-4582-8cf8-fd1ad518a888
  6. Will the СU32 be released for MS SQL Server 2017?

    in Windows 10 Software and Apps
    Will the СU32 be released for MS SQL Server 2017?: Hi all.Hope you are doing well!Do you know if Microsoft plans to release the CU32 update package for MS SQL Server 2017?I checked the official website and found that the Mainstream End Date is October 11, 2022, but the Extended End Date is October 12, 2027.As far as I...
  7. SQL Server 2016 Issue

    in Windows 10 Gaming
    SQL Server 2016 Issue: Hi everyone,I've update Security on DPM Window Server 2012R2 with SQL Server 2016, so i've backup the Database first but this is the old system, i don't know if backup the database is enough when i'm searching on internet for backup Database i saw the backup DPM config.So i...
  8. SQL Server 2016 Issue

    in Windows 10 Software and Apps
    SQL Server 2016 Issue: Hi everyone,I've update Security on DPM Window Server 2012R2 with SQL Server 2016, so i've backup the Database first but this is the old system, i don't know if backup the database is enough when i'm searching on internet for backup Database i saw the backup DPM config.So i...
  9. SQL Server Data Tool SSDT 2017 can install on Windows Server 2016 Data center?

    in Windows 10 Installation and Upgrade
    SQL Server Data Tool SSDT 2017 can install on Windows Server 2016 Data center?: Which OS is required to install SQL Server Data Tool SSDT? I have Windows Server 2016 Data center installed in my system. I need to install SSDT 2017. I am not bale to install SSDT 2017 because of this OS issue. My question is which OS is required for installing SSDT 2017?...
  10. SQL server 2017 Express Edition

    in Windows 10 Installation and Upgrade
    SQL server 2017 Express Edition: Hi I have the following problem: I want to install sql server 2017 express and have tried several times but I keep getting the same error. I googled the error but couldn't find any solutions that worked for me. The installer says "Unable to install SQL server (setup.exe)....