Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Looking solutions on how to set up a custom time zone for azure elastic pool database, the default time zone for azure elastic pool databases UTC, how do I Modify the default time zone

How to set up an IST time zone for an elastic pool?

All databases in the elastic pool will take the elastic pool time zone or do we required to set the time zone for each database separately?

If Yes, How do I modify the default time zone for databases elastic pool databases?

How to control the size of the database in Azure elastic pool databases for each database separately?

What I have tried:

Created elastic pool and attached to databases to pool
Posted
Updated 15-May-20 21:33pm

1 solution

Basically, don't. It's UTC for a reason, so that it doesn't matter when and where a time is recorded it's the same time. If I record a time in Azure from the UK, it should be the same time as if an Australian input is recorded, or an Indian, or an American - if you switch to "local time" then you lose that and the four simultaneous inputs above get recorded as wildly different values, even different days! That complicates your DB considerably - because each date/time value needs to be recorded along with the local code that it was stored with - including a summer time / daylight saving indicator - or it's "useless information". And then even the simple act of comparing two input timestamps becomes a total PITA!

Store date / time values in UTC, and convert to and from local in your presentation software - it's the only part of your code that should have any idea what the user local time zone is, or where the user is!
 
Share this answer
 
v2
Comments
Richard Deeming 18-May-20 12:19pm    
Of course, storing in UTC and converting on the client only works if the time-zones don't change. :)

Storing UTC is not a silver bullet | Jon Skeet's coding blog[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900