DateTime Params Parsing
Reported by Matt Todd | December 28th, 2008 @ 08:03 AM
Adding ticket for conversation going on at:
http://groups.google.com/group/r...
The conversation covers numerous topics so this ticket reflects specifically the proposal for parsing request params in a parsable DateTime format to be converted into DateTime objects.
This resolves a query string like so:
timestamp=2008-12-28+03:01:05
with the timestamp
field value set to an instance of
DateTime.Comments and changes to this ticket
-
Matt Todd December 28th, 2008 @ 08:39 AM
I think this would be a great middleware, but is not suitable for Rack core.
-
chneukirchen (at gmail) December 28th, 2008 @ 01:00 PM
This merely saves writing DateTime.parse(req["timestamp"]), not worth the hassle I think.
Also can lead to nasty bugs, what if you enter such a date in a comment field for example?
-
Ryan Tomayko December 29th, 2008 @ 10:52 AM
-1
(Meta: we should lay down some guidelines for closing tickets as invalid. I'd say two or more -1's from core team without opposition should be plenty.)
-
chneukirchen (at gmail) December 29th, 2008 @ 07:59 PM
- State changed from new to invalid
-
Matt Todd December 30th, 2008 @ 04:40 PM
Is there a way to move this ticket to rack-contrib? I think this may be a good middleware (although the lazy loading stuff complicates it, as always).
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.