Where is my Timezone

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
DateTime data is not timezone-specific. It adjusts to whatever time zone the
machine is configured as.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

I recycle.
I send everything back to the planet it came from.
 
Arne Garvander said:
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
 
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.
 
Kevin Spencer said:
...which the server won't know unless it has been configured for the current
Time Zone!

The OP didn't mention whether it was his software or his hardware that
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
 
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.
 
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.

--
Hope this helps
Jay B. Harlow [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net


| 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.)
 
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?


Kevin Spencer said:
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.
 
Back
Top