Hi,
I have a small question about the DateTime widget (http://dev.day.com/docs/en/cq/current/widgets-api/index.html?class=CQ.form.DateTime).
When we use it in a dialog, it automatically adds the time zone of the browser/user into the field. How do I avoid that?
/Ove
Solved! Go to Solution.
CQ widgets can be extended/customized. You can change that widget to meet your business needs.
See: http://dev.day.com/docs/en/cq/current/developing/widgets.html.
CQ widgets can be extended/customized. You can change that widget to meet your business needs.
See: http://dev.day.com/docs/en/cq/current/developing/widgets.html.
This is caused by the fact that DateTime field Widget is using the EXTJs date library (Date.js) which has this behaviour as a default.
And as Scott said, the only way to avoid that is to overlay the standard widget or create you own, it should be possible to return the value without the user/browser time zone.
JCR is though, as far as i know, limited to store dates strictly in ISO8601 so it might not be possible to go overboard with the creativity in the overlay/custom widget there, but as long as one follows that it should be ok
Views
Replies
Total Likes
Good answers. In the end, we realized that we can blissfully ignore the time zone information.
/Ove
Views
Replies
Total Likes