Colin Law wrote:
> On 2 September 2010 21:49, Robert Walker <lists@ruby-forum.com> wrote:
>>
>> SELECT * FROM "items" WHERE ("items"."created_at" >= '2010-09-02' AND
>> 'items"."created_at" < '2010-09-03')
>
> But going back to the OP's original point, that will give all items
> created on that day UTC whereas I think he wanted items created today
> local time.
>
> Colin
That's it. Normally nobody will use this app in the night, but I am
sure, if I leave this "hole" of two hours someone will test it at 1:00
am :-)
So thanks again to everybody for your input!
Sven
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment