zhangjingl02 / activejdbc

Automatically exported from code.google.com/p/activejdbc
0 stars 0 forks source link

toJson() Dates are incorrect for DateTime type, only accurate to the minute, not the second #201

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The results when you call a toJson() with a SQL DateTime type results in 
something like:

"time_":"2014-07-18T20:46Z",
...

Which only shows accuracy up to the nearest minute. The real MySql datetime 
type is accurate to the second.

This is causing me a lot of problems with my project, because I need the 
results of toJson to be accurate down to seconds.

Original issue reported on code.google.com by Tchouli...@gmail.com on 18 Jul 2014 at 9:38