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

Problem with date storage #108

Closed
wants to merge 6 commits into from
Closed

Problem with date storage #108

wants to merge 6 commits into from

Conversation

markgardner
Copy link

I found an issue that the date stored in the database wasn't being stored as UTC. I've changed all date methods to reference the UTC value. It might be worth mentioning that getTime/setTime are UTC relative methods while all else are timezone relative unless otherwise specified.

Since this might break everyone that has used tedious before it might be beneficial to make this type of conversion to be a configuration setting. What do you think?

@pekim
Copy link
Collaborator

pekim commented Jul 4, 2013

Would this explain issue #95?

@markgardner
Copy link
Author

Yeah I think so. I was seeing similar problems on my end.

Btw just noticed the tests failed I'll get on fixing them

@markgardner
Copy link
Author

Glade you had some tests around this. When looking at the test I realized that I didn't account for the difference in tds and js epoch. Everything should be working now.

@markgardner
Copy link
Author

Also I noticed that when datetime is being written that it was using a UInt for days when it should just use Int. I believe pull request #106 fixed part of this. Looks like small date should both be UInt though.

zero length varchar params don't work unless a length greater than zero ...
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