Question

i am in turkey. turkey timezone is (UTC +02:00)

But on sql server management studio

select (GETDATE() - GETUTCDATE() ) as a

gives

1900-01-01 03:00:00.000

Était-ce utile?

La solution

Turkey is currently on daylight saving time. It uses UTC+03:00 until October 27, when it will switch back to UTC+02:00. Details here.

Your standard time zone offset is +2, but your current offset is +3. Please read the timezone tag wiki, especially the section titled "Time Zone != Offset".

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top