Hi Mathew - no I don't believe so - I have already tested that code myself successfully. Thanks.
JustinFrost ( 2019-12-06 11:14:34 +0800 )edit-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
We have created a lot of custom components for ZK which pass dates from the Java class to the widget on the client side.
I noticed a bug since upgrading from 8.0.5 to ZK 8.6.3 that sometimes these are come through as a DateImpl object instead of a Javascript date as they used to.
It looks like this DateImpl object was added in 8.6 - is there something I can do to prevent this ?
Hi,
ZK switched from JS date objects to moment.js to improve date and time handling in ZK 8.5 and onward. This library provides better reliability for time-based values, including automatically updated timezones, etc.
You can get the JS Date from the DateImpl with:
dateImplInstance._moment.toDate()
That should be a good start for a component update. Is there any workflow not covered by that conversion?
Hi Mathew - no I don't believe so - I have already tested that code myself successfully. Thanks.
JustinFrost ( 2019-12-06 11:14:34 +0800 )editAsked: 2019-12-06 08:43:22 +0800
Seen: 15 times
Last updated: Dec 06 '19
[ZK8.6 Preview] New media components coming soon!
Bug in Datebox with lenient=false and value 01.04.1981?
javascript cannot catch id of zul component. Please help.
failed to utilize getTop(), getLeft() on div(component). Please help.
Serving zul files from a directory outside web application