marklogic-community/demo-cat

Don't touch entries disappear too quickly

grtjn opened this issue · 2 comments

grtjn commented

Client-side code doesn't compensate for timezone, nor for duration..

grtjn commented

It was a bit more complicated. The date/time picker operates in browser timezone, that is where first things go wrong. You have to manually strip timezone, and apply event timezone. Upon loading you have to do the reverse, put event date/time into local timezone to make it possible to display the time as in event timezone, and to make it show correctly in date/time picker as well.

I took the effort of creating a second, temporary date/time property with the event start in local timezone, and actually show event start in both original, and local timezone for user convenience..

grtjn commented

Fixed in dev