Try running this statement in sql.js: SELECT datetime('2012-04-16 12:35:57', '+1 days'); You'll see that it returns 2012-04-15 12:35:57 instead of 2012-04-17 12:35:57. I have verified that vanilla SQLite does return 2012-04-17 12:35:57.