Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix support for subsecond time on the Time object for sqlite3 #65

Merged
merged 1 commit into from

2 participants

John Van Enk Dirkjan Bussink
John Van Enk

No description provided.

Dirkjan Bussink dbussink merged commit 6f72887 into from
Dirkjan Bussink
Owner

Released in 0.10.14

John Van Enk

Thanks for the quick turnaround on this! I seriously appreciate it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
2  data_objects/lib/data_objects/ext/do_common.c
View
@@ -193,7 +193,7 @@ VALUE data_objects_parse_date(const char *date) {
}
VALUE data_objects_parse_time(const char *date) {
- static char const* const _fmt_datetime = "%4d-%2d-%2d %2d:%2d:%2d%7lf";
+ static char const* const _fmt_datetime = "%4d-%2d-%2d%*c%2d:%2d:%2d%7lf";
int year = 0, month = 0, day = 0, hour = 0, min = 0, sec = 0, usec = 0;
double subsec = 0;
1  do_sqlite3/spec/typecast/time_spec.rb
View
@@ -5,4 +5,5 @@
describe 'DataObjects::Sqlite3 with Time' do
it_should_behave_like 'supporting Time'
+ it_should_behave_like 'supporting sub second Time'
end
Something went wrong with that request. Please try again.