Skip to content

Problem with date storage #108

wants to merge 6 commits into from

2 participants


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 commented Jul 4, 2013

Would this explain issue #95?


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

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


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.


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.

Mark Gardner Merge pull request #1 from markgardner/varchar-param
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
Something went wrong with that request. Please try again.