Home > Articles > Details

How to Change the Time Zone of SQL Server from Docker Compose File

Question: How do you change the time from UTC to #Local Time of the SQL Server Database Engine? I have struggled to find answers but no luck.


Please Login to see the rest of the answer
Answer: You can only change the Time Zone of the #SQL #Server #Database Engine from the Operating System, if you are using #Docker and #Docker-Compose files you can pass in the #Environment Variable called 
TZ see below:

TZ=America/Detroit

The above line of code should help you resolve the #Time Zone issues in the SQL Server Database. Leave us a comment if this helped you.


If you log in, you will be notified when someone leaves a comment.

Other users would like to know if this solution helped you.


© 2022 - ErnesTech - Privacy