Changing server to summer time zone with mongodb

Hello everyone ,

I am new in administrating mongodb so maybe my question look silly , but I live in Egypt and we have summer and winter time zone so here is my question now the time will be changed soon and I want to make sure there will no affect on the database or the consistency of the data what is the best practice to follow in this case.

Thank you

One suggestion, never use local time. Always go for UTC, and convert to local (in source) if you need it.

1 Like

Thanks for your replay
so do you know how to do it ? Or Is there any article with the steps to do so ?

Just setup your server time to UTC, there’s tons of tutorials on how to do that. Then, simple MondoDB restart will do the job.