(new Date(......)).toISOString() run as javascript within browser generates 
date string that has following format: '2015-01-29T18:30:00.000Z'

If I take this string and try to insert in the database through web.py I 
get a warning as below:

/Library/Python/2.7/site-packages/web/db.py:587: Warning: Incorrect 
datetime value: '2015-01-29T18:30:00.000Z' for column 'fromdate' at row 1

If I remove trailing "Z" in the datestring (ISO format) and then insert. In 
this case there is no warning. 

How do I use such ISO formatted datestring to insert into web.py without 
generating a warning message? Inserting the same date string into MySQL 
directly (without using web.py ) works as expected.

 

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/webpy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to