November Happy Hour will be moved to Thursday December 5th.

Editor timezone problems - changing dojo locale

Vote:
 

Hi.

We have site hosted in Sweden (GMT +1) but used by editors in London. The issue is that the EPiServer Date / time picker (dijit.form.DateTextBox) shows times using the client's timezone (GMT) but then stores the time in the property using the server's timezone (GTM +1). This is very confusing for the editors as the times rendered on the site (in view mode) are always 1 hour different to what they input (i.e. they reflect GMT +1, the database value). We want the time the editor enters to be output as is without timezone adjustment (they affectively need to input times in GMT +1)

One solution I though about was to configure dojo to have a locale of "se" so the times the dijit control shows match the stored times. I saw there is a class called EPiServer.Shell.UI.DojoConfig where locale can be set although I see no way of making EPiServer use my instance (the code I found using reflection does not use the ServiceLocator, it creates a DojoConfig instance directy).

Any suggesions?

Thanks.

#116145
Jan 23, 2015 17:47
Vote:
 

Hi Paul

Can you can ask your hosting provider to change the time zone to the UK time zone ;)?

David

#116146
Jan 23, 2015 18:28
Vote:
 

David, 

That would be short-term fix as eventually we will have editors all over the world. Essentially, the dijit.form.DateTextBox locale needs to match the server's locale, switching to UK will work for editors in UK but the problem will still appear for editors in other timezones.

Dru and Nimesh send their "regards" ;-)

#116147
Jan 23, 2015 18:41
Vote:
 

Hi Paul,

I have checked this issue with developer who said that is by-designed then it's not supported to show the same date-time regardless of timezone and you have to convert the datetime base on the current timezone of editor.

It seems like you must use the custom date dojo editor solution that can be found in http://world.episerver.com/Forum/Developer-forum/EPiServer-7-CMS/Thread-Container/2013/11/EPiServer-DateTime-Property-problem/

#116169
Jan 26, 2015 8:52
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.