Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug with datetime function #3

Closed
jakefeasel opened this issue Apr 17, 2012 · 2 comments
Closed

Bug with datetime function #3

jakefeasel opened this issue Apr 17, 2012 · 2 comments

Comments

@jakefeasel
Copy link

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.

@kripken
Copy link
Collaborator

kripken commented Apr 22, 2012

Thanks for the report. We had the wrong parameters to Sqlite apparently, I fixed them and now this works ok. Added a test and updated the demo.

@kripken kripken closed this as completed Apr 22, 2012
@jakefeasel
Copy link
Author

Great, thanks. I've updated my copy and I can see it working here: http://sqlfiddle.com/#!5/d41d8/22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants