Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / June 2006

Tip: Looking for answers? Try searching our database.

Where is my Timezone

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Arne Garvander - 19 Jun 2006 21:03 GMT
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.

Signature

Arne Garvander
(I program VB.Net for fun and C# to get paid.)

Kevin Spencer - 19 Jun 2006 23:25 GMT
DateTime data is not timezone-specific. It adjusts to whatever time zone the
machine is configured as.

Signature

HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

I recycle.
I send everything back to the planet it came from.

> 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.
Barry Kelly - 19 Jun 2006 23:45 GMT
> 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

Signature

http://barrkel.blogspot.com/

Kevin Spencer - 20 Jun 2006 03:18 GMT
> You mean like TimeZone.CurrentTimeZone?

...which the server won't know unless it has been configured for the current
Time Zone!

Signature

HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

I recycle.
I send everything back to the planet it came from.

>> 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
[quoted text clipped - 3 lines]
>
> -- Barry
Scott M. - 20 Jun 2006 03:46 GMT
How do you *not* configure a server to know what time zone it is in?!

>> You mean like TimeZone.CurrentTimeZone?
>
[quoted text clipped - 9 lines]
>>
>> -- Barry
Kevin Spencer - 20 Jun 2006 12:44 GMT
> 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.

Signature

HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

I recycle.
I send everything back to the planet it came from.

> How do you *not* configure a server to know what time zone it is in?!
>
[quoted text clipped - 11 lines]
>>>
>>> -- Barry
Scott M. - 20 Jun 2006 22:08 GMT
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?

>> How do you *not* configure a server to know what time zone it is in?!
>
[quoted text clipped - 25 lines]
>>>>
>>>> -- Barry
Barry Kelly - 20 Jun 2006 11:50 GMT
> > You mean like TimeZone.CurrentTimeZone?
>
> ...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

Signature

http://barrkel.blogspot.com/

Jay B. Harlow [MVP - Outlook] - 20 Jun 2006 13:26 GMT
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.

Signature

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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.