Globalisation and Time zone settings
satyaitoolz said 2 years ago:
Hi,
I have hoasted an ASP.NET application on Godaddy.The web app is for indian market and work fine. However, my site works on datetime which has to be in Indian time zone (GMT +5:30) but the site shows the US time(This is happening even after setting the globalisation tag to HINDI in my web.config) I need a solution for this as most my customers are not happy.
Please help
Satya
steves said 2 years ago:
@satyaitoolz
The server date/time on all of our hosting servers is going to based on GMT -7. There is not a way to change the server time, however there should be no issue using a script in your application to offset the time difference. Hopefully other members in the community will be able to offer such a script to make this type of adjustment.
-Steve
prabhuram13 said 1 year, 1 month ago:
my hosted server have US time zone. how can change it to india time zone. Any one please help me;
JasonP said 1 year ago:
@prabhuram13
As we are a US based company, all of the hosting servers will be set to GMT -7. This setting cannot be adjusted. I apologize for any inconvenience this may cause.
Jason
satyaitoolz said 1 year ago:
Here is the Solution
DateTime.UtcNow.AddHours(5.5).Date.ToString(“MM/dd/yyyy”);
in above code UtcNow returns standard time at GMT 0 hrs, depdning up on our local time either we need to add or subtract hours accordingly.
Hope this helps others
Satya
0 min expected wait time