Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Change Time.to_json to include subseconds

#23

Since CouchDB doesn't have any equivalent auto-incrementing id fields, discerning the order in which additions took place might be problematic if there is more than one record added in a single second. This could be important for, say, logging.

I propose changing the Time.to_json monkeypatch to include sub-second precision. The change is simple: modify line 11 of monkeypatches.rb to read:

%("#{u.strftime("%Y/%m/%d %H:%M:%S.#{u.usec} +0000")}")

CouchRest and all tests should continue to work fine with this minor change.

Reported by hkstar · November 19th, 2008 @ 07:07 PM

State: new
Milestone: none
Assigned to: J. Chris A. J. Chris A.

Activity

No comments yet.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.