Date parsing in d3 doesn't work with web2py when running the default 
calendar.js.  d3.time.format().parse()
 
I've just hit this specific issue, using d3 with web2py (date parsing in d3 
fails), using web2py 2.8.2.
https://groups.google.com/forum/#!searchin/d3-js/d3.time.format.parse/d3-js/dSOl8BBcGfw/A_yb0blePyIJ
 
and I also found this web2py issue involving moment.js which had the same 
cause; that calendar.js overwrites setFullYear.
http://osdir.com/ml/web2py/2012-12/msg01573.html  which resulted in an 
issue:  
*http://code.google.com/p/web2py/issues/detail?id=1243*<http://code.google.com/p/web2py/issues/detail?id=1243>
  

"It appears that calendar.js redefined the Date.setFullYear function of the 
JS Date object. "
 
This issue was resolved in Dec 2012  "The fix involves preventing the 
re-definition of the methods and creating new ones, as needed by 
calendar.js."   Any more details on the fix for this?
Should I reopen this issue or is there something that has to be done in 
web2py to work around this ? 
 
Note that I commented out calendar.js from the web2py_ajax.html and 
everything then works as expected.     I'm sure I'll need calendar.js for 
other things though.
 
thanks
 
Andrew W

 


 
 

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to