Skip to content

Fix sqlite date functions for epoch#319

Merged
brianc merged 1 commit into
brianc:masterfrom
barryhammen:fix/sqlite-dates
May 26, 2016
Merged

Fix sqlite date functions for epoch#319
brianc merged 1 commit into
brianc:masterfrom
barryhammen:fix/sqlite-dates

Conversation

@barryhammen
Copy link
Copy Markdown
Contributor

Via configuration you can set SQLite to use epoch timestamps or ISO formatted dates. The original implementation only worked for ISO formatted dates. This PR fixes that.

@brianc
Copy link
Copy Markdown
Owner

brianc commented May 26, 2016

Hey thanks for the PR! Would it be possible to add tests for your behavior while also keeping the old tests for the existing behavior intact? Maybe another test file where you apply the config to use epoch timestamps & then check the new output? If I'm reading this right it looks like this just changes the old tests, which in turn removes test coverage for the old behavior.

@barryhammen
Copy link
Copy Markdown
Contributor Author

Half the tests use epoch (month and hour) the other use ISO (year and day). I can certainly add 4 more tests. Just let me know!

@brianc
Copy link
Copy Markdown
Owner

brianc commented May 26, 2016

Ah sorry didn't know half the tests still used the old epoc time! I just looked @ the diff & ran the tests. If both cases are covered we're good to go! I'll release a new minor version to npm in just a few min here! 💃 thanks again!

@brianc brianc merged commit bc4d8d9 into brianc:master May 26, 2016
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

Successfully merging this pull request may close these issues.

2 participants