Is there a way to adjust the timezone Umbraco uses. I have a webserver set to GMT/UTC time and writers that post in EST. Is there a way to adjust the time? Thanks.
Unfortunately, something like this is very difficult to deal with, the best thing I could find is this: http://www.velocityreviews.com/forums/t119394-set-timezone-for-an-asp-net-web-app.html - Which basically say: you will have to convert the time to a different timezone on the frontend if you need to. It's that or change the time on the server.
var est = TimeZoneInfo.FindSystemTimeZoneById("Eastern Standard Time"); var utcOffset = new DateTimeOffset(DateTime.UtcNow, TimeSpan.Zero); var estNow = utcOffset.ToOffset(est.GetUtcOffset(utcOffset));
Shannon - you'd need to expand on "the time Umbraco uses".
What specifically do you want Umbraco to do with your EST times.
My gut feeling is that you would store the local time and calculate the offset when you want to display.
I am using Blog4Umbraco and hosting Umbraco in Microsoft Azure. Azure has their servers set to GMT. My writes are mostly on the West coast (PST) and I would like to have the times that show in PST as not to confuse the writers and having them manage 2 different times zone and remember when to post articles.
I need time zone package for Umbraco, (Ex. Suppose i have one hosted website , if ill browse this site in any one country time should be display for that perticular country.)
Time zone adjustment in Umbraco
Is there a way to adjust the timezone Umbraco uses. I have a webserver set to GMT/UTC time and writers that post in EST. Is there a way to adjust the time? Thanks.
Unfortunately, something like this is very difficult to deal with, the best thing I could find is this: http://www.velocityreviews.com/forums/t119394-set-timezone-for-an-asp-net-web-app.html - Which basically say: you will have to convert the time to a different timezone on the frontend if you need to. It's that or change the time on the server.
You can do something like:
@Darren I seem to recall that this isn't very reliable with daylight savings time. But I can't say I have first hand experience, so it might work.
@Sesbastiaan - maybe something like this then:
Should give you the offset.
Where would I plug that in Darren?
Shannon - you'd need to expand on "the time Umbraco uses". What specifically do you want Umbraco to do with your EST times. My gut feeling is that you would store the local time and calculate the offset when you want to display.
I am using Blog4Umbraco and hosting Umbraco in Microsoft Azure. Azure has their servers set to GMT. My writes are mostly on the West coast (PST) and I would like to have the times that show in PST as not to confuse the writers and having them manage 2 different times zone and remember when to post articles.
The times on the front end website or in the backoffice.
For the latter I don't believe Umbraco stores any information about the timezone of it's users - I guess that would be a modification to the core.
hi
I need time zone package for Umbraco, (Ex. Suppose i have one hosted website , if ill browse this site in any one country time should be display for that perticular country.)
If any package or code for this please post.
Regards,
Debendra
is working on a reply...