Yes, JavaScript timestamp integers include the milliseconds, epoch does
not (only after the dot). You can support more formats of the date
string if you use qx.util.format.DateFormat.
T.
On 07/10/2013 09:18 AM, Micha wrote:
> I solved it, the conversion functions were not correct.
> If your model has a number field which holds a epoch value and you want
> to show a DateField in your form then this converter works:
>
>
> controller.addBindingOptions("epochfield",
> {
> converter: function(seconds) {
> return new Date(seconds * 1000);
> }
> },
>
> {
> converter: function(datestring) {
> return Date.parse(datestring) / 1000;
> }
> }
> );
>
>
> cheers,
> Michael
>
>
>
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel