Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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:
var est = TimeZoneInfo.FindSystemTimeZoneById("Eastern Standard Time");var estNow = TimeZoneInfo.ConvertTime(DateTime.Now, est);
@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:
var est = TimeZoneInfo.FindSystemTimeZoneById("Eastern Standard Time"); var utcOffset = new DateTimeOffset(DateTime.UtcNow, TimeSpan.Zero); var estNow = utcOffset.ToOffset(est.GetUtcOffset(utcOffset));
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.
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.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted