|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Where is my TimezoneIs there a way that I can retrieve the timezone my server is runnning in?
My server may not move to another timezone very often, but if we have a disaster our server my move to another zone during a disaster recovery. -- Arne Garvander (I program VB.Net for fun and C# to get paid.) DateTime data is not timezone-specific. It adjusts to whatever time zone the
machine is configured as. -- Show quoteHTH, Kevin Spencer Microsoft MVP Professional Chicken Salad Alchemist I recycle. I send everything back to the planet it came from. "Arne Garvander" <ArneGarvan***@discussions.microsoft.com> wrote in message news:AB37D756-8F9D-4BBA-B2A6-C4770E625C45@microsoft.com... > Is there a way that I can retrieve the timezone my server is runnning in? > My server may not move to another timezone very often, but if we have a > disaster our server my move to another zone during a disaster recovery. > > -- > Arne Garvander > (I program VB.Net for fun and C# to get paid.) Arne Garvander <ArneGarvan***@discussions.microsoft.com> wrote:
> Is there a way that I can retrieve the timezone my server is runnning in? You mean like TimeZone.CurrentTimeZone?> My server may not move to another timezone very often, but if we have a > disaster our server my move to another zone during a disaster recovery. -- Barry > You mean like TimeZone.CurrentTimeZone? ....which the server won't know unless it has been configured for the current Time Zone! -- Show quoteHTH, Kevin Spencer Microsoft MVP Professional Chicken Salad Alchemist I recycle. I send everything back to the planet it came from. "Barry Kelly" <barry.j.ke***@gmail.com> wrote in message news:c7ae925bt8n6k4clms7lrqimrsau020j49@4ax.com... > Arne Garvander <ArneGarvan***@discussions.microsoft.com> wrote: > >> Is there a way that I can retrieve the timezone my server is runnning in? >> My server may not move to another timezone very often, but if we have a >> disaster our server my move to another zone during a disaster recovery. > > You mean like TimeZone.CurrentTimeZone? > > -- Barry > > -- > http://barrkel.blogspot.com/ How do you *not* configure a server to know what time zone it is in?!
Show quote "Kevin Spencer" <u**@ftc.gov> wrote in message news:%23Ny2K$AlGHA.3596@TK2MSFTNGP05.phx.gbl... >> You mean like TimeZone.CurrentTimeZone? > > ...which the server won't know unless it has been configured for the > current Time Zone! > > -- > HTH, > > Kevin Spencer > Microsoft MVP > Professional Chicken Salad Alchemist > > I recycle. > I send everything back to the planet it came from. > > "Barry Kelly" <barry.j.ke***@gmail.com> wrote in message > news:c7ae925bt8n6k4clms7lrqimrsau020j49@4ax.com... >> Arne Garvander <ArneGarvan***@discussions.microsoft.com> wrote: >> >>> Is there a way that I can retrieve the timezone my server is runnning >>> in? >>> My server may not move to another timezone very often, but if we have a >>> disaster our server my move to another zone during a disaster recovery. >> >> You mean like TimeZone.CurrentTimeZone? >> >> -- Barry >> >> -- >> http://barrkel.blogspot.com/ > > > How do you *not* configure a server to know what time zone it is in?! The same way you *don't* configure the server to know what domain it belongs to, what its name is, or the same way your *don't* set your alarm clock to the time you want it to wake you up. How do you figure the server knows what time zone it is in without someone configuring it? Time Zones are specific to physical locations on the planet. Unless the server has a built-n GPS, and special software, which I suppose may exist somewhere, but is not a part of any Operating System that I know of, it has no idea where it is. -- Show quoteHTH, Kevin Spencer Microsoft MVP Professional Chicken Salad Alchemist I recycle. I send everything back to the planet it came from. "Scott M." <s-mar@nospam.nospam> wrote in message news:uswynNBlGHA.3816@TK2MSFTNGP02.phx.gbl... > How do you *not* configure a server to know what time zone it is in?! > > > "Kevin Spencer" <u**@ftc.gov> wrote in message > news:%23Ny2K$AlGHA.3596@TK2MSFTNGP05.phx.gbl... >>> You mean like TimeZone.CurrentTimeZone? >> >> ...which the server won't know unless it has been configured for the >> current Time Zone! >> >> -- >> HTH, >> >> Kevin Spencer >> Microsoft MVP >> Professional Chicken Salad Alchemist >> >> I recycle. >> I send everything back to the planet it came from. >> >> "Barry Kelly" <barry.j.ke***@gmail.com> wrote in message >> news:c7ae925bt8n6k4clms7lrqimrsau020j49@4ax.com... >>> Arne Garvander <ArneGarvan***@discussions.microsoft.com> wrote: >>> >>>> Is there a way that I can retrieve the timezone my server is runnning >>>> in? >>>> My server may not move to another timezone very often, but if we have a >>>> disaster our server my move to another zone during a disaster recovery. >>> >>> You mean like TimeZone.CurrentTimeZone? >>> >>> -- Barry >>> >>> -- >>> http://barrkel.blogspot.com/ >> >> > > Yes, but during the setup of the OS (at least Windows), you are asked what
time zone you are in so that it gets set to the correct time zone. So, I ask again, how do you not configure your server with the correct time zone? Show quote "Kevin Spencer" <u**@ftc.gov> wrote in message news:uPyOn7FlGHA.1600@TK2MSFTNGP04.phx.gbl... >> How do you *not* configure a server to know what time zone it is in?! > > The same way you *don't* configure the server to know what domain it > belongs to, what its name is, or the same way your *don't* set your alarm > clock to the time you want it to wake you up. > > How do you figure the server knows what time zone it is in without someone > configuring it? Time Zones are specific to physical locations on the > planet. Unless the server has a built-n GPS, and special software, which I > suppose may exist somewhere, but is not a part of any Operating System > that I know of, it has no idea where it is. > > -- > HTH, > > Kevin Spencer > Microsoft MVP > Professional Chicken Salad Alchemist > > I recycle. > I send everything back to the planet it came from. > > "Scott M." <s-mar@nospam.nospam> wrote in message > news:uswynNBlGHA.3816@TK2MSFTNGP02.phx.gbl... >> How do you *not* configure a server to know what time zone it is in?! >> >> >> "Kevin Spencer" <u**@ftc.gov> wrote in message >> news:%23Ny2K$AlGHA.3596@TK2MSFTNGP05.phx.gbl... >>>> You mean like TimeZone.CurrentTimeZone? >>> >>> ...which the server won't know unless it has been configured for the >>> current Time Zone! >>> >>> -- >>> HTH, >>> >>> Kevin Spencer >>> Microsoft MVP >>> Professional Chicken Salad Alchemist >>> >>> I recycle. >>> I send everything back to the planet it came from. >>> >>> "Barry Kelly" <barry.j.ke***@gmail.com> wrote in message >>> news:c7ae925bt8n6k4clms7lrqimrsau020j49@4ax.com... >>>> Arne Garvander <ArneGarvan***@discussions.microsoft.com> wrote: >>>> >>>>> Is there a way that I can retrieve the timezone my server is runnning >>>>> in? >>>>> My server may not move to another timezone very often, but if we have >>>>> a >>>>> disaster our server my move to another zone during a disaster >>>>> recovery. >>>> >>>> You mean like TimeZone.CurrentTimeZone? >>>> >>>> -- Barry >>>> >>>> -- >>>> http://barrkel.blogspot.com/ >>> >>> >> >> > > "Kevin Spencer" <u**@ftc.gov> wrote: The OP didn't mention whether it was his software or his hardware that> > You mean like TimeZone.CurrentTimeZone? > > ...which the server won't know unless it has been configured for the current > Time Zone! would be moving. I assumed it was the software that was moving. If his hardware was moving, then he'd have to go into Date & Time in the control panel and fix the time zone. Not too much of a biggie, I would hope. -- Barry Arne,
As the others pointed out, TimeZone.CurrentTimeZone will tell you what time zone your server is configured for. Now a question for your disaster recovery team & the disaster recovery site. Do they set and/or change the time zone of the recovery machine to their time zone or your time zone? I would expect the recovery machine to be set to your original time zone although the machine may physically be located in another time zone. As I would expect the recovery machine to simply be a complete restore of your original machine (system settings & all!) Definitely something worth checking during your disaster recovery tests. -- Show quoteHope this helps Jay B. Harlow [MVP - Outlook] ..NET Application Architect, Enthusiast, & Evangelist T.S. Bradley - http://www.tsbradley.net "Arne Garvander" <ArneGarvan***@discussions.microsoft.com> wrote in message news:AB37D756-8F9D-4BBA-B2A6-C4770E625C45@microsoft.com... | Is there a way that I can retrieve the timezone my server is runnning in? | My server may not move to another timezone very often, but if we have a | disaster our server my move to another zone during a disaster recovery. | | -- | Arne Garvander | (I program VB.Net for fun and C# to get paid.) |
|||||||||||||||||||||||