Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I know the Timezone of my Web site Host

I know this one is the weirdest of all weird questions I have asked till date. But I have a reason.

The problem is that I have a no of websites hosted in diff servers (I dont own these servers) and every website has some pages where I have to enter some execution date and time. The date/time I enter should be of the timezone in which my website's host server is running.

Just want to know if there is any good utility/website which can tell me the timezone/location of my web host if I provide the web site address.

like image 881
MSIL Avatar asked Nov 24 '25 22:11

MSIL


1 Answers

You can put on each of those servers your own "system" page that will display the current time.

<%= DateTime.Now.ToString() %>

And you will access it like: http://site-no-x.com/timecheck

Something like this. Simple and effective.

ADDED: Keep in mind also that web servers and database servers can also have different time settings. If a hosting company (theoretically) keeps the web server farm on East coast and has the database servers on West coast, you will see different dates returned by .NET's DateTime.Now and SQL's GETDATE().

like image 58
User Avatar answered Nov 27 '25 22:11

User



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!