A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
Problem:
I have faced problem for using DateTime dojo property in the EPiserver page type template. My requirement is user needs to create the event with start and end date. So i'm using the default Date Time property, This perfectly work when EPiServer Admin / Editor user crating the page with same Time zone and also dates are displayed correctly in the page preview mode.
But, when the users in different Time zone like EST & PST the dates are displayed one day ahead in EPiserver Editmode. for ex; if date is 7/10/2013 and in Editmode it displayed 7/11/2013. The problem is dojo stored value into ISO standared format, so in the client side event trigger it takes client TimeZone setting and convert the stored Date value. In my situation, the server Timezone is PST standard time, but client using the EPiServer edit mode in EST standard time, so dates are displayed incorrectly.
Solution:
For this problem I've used the below custom date dojo editor solution and fixed it. If there is any other option is greatly appreciated, please share.
DateTextboxEditor.JS
dateTextboxeditor.html