I kind of like Chronic for this:
It was demonstrated at RubyConf and totally rocked.
I kind of like Chronic for this:
It was demonstrated at RubyConf and totally rocked.
Zed A. Shaw wrote:
> > > The Time::next_week method is supposed to give the time of the start of > the next week. But look at this, it cocks up :
I kind of like Chronic for this:
It was demonstrated at RubyConf and totally rocked.
-- Zed A. Shaw, MUDCRAP-CE Master Black Belt Sifu http://www.zedshaw.com/ http://mongrel.rubyforge.org/ http://www.lingr.com/room/3yXhqKbfPy8 -- Come get help.
I liked chronic so much that I added support for it in the ruby-units gem.
Now you can do things like...
'3 weeks'.from 'today'
#=>Tue Nov 14 19:30:00 EST 2006
_Kevin
Nauhaie None wrote:
Well, I posted about that a month ago, and nobody seemed to care...
The patch for the defect, http://dev.rubyonrails.org/ticket/6483, was applied to Edge within 2 hours.
I find this attitude quite disturbing actually. In fact, Rails just doesn't care about everything that is not-US.
As far as I am aware most US states use DST, so this defect affected US as well.
For example, the validation error messages can be translated, but not the "There was 3 errors trying to validate..."
The application I am currently working on happily displays "Der blev fundet 3 problemer i din indtastning". This stuff is easy to modify (hint: Noone is forcing you to use the (very basic) builtin helper).
Sorry to have to jump in here, but I made a patch back in July for this: http://dev.rubyonrails.org/ticket/5617
I've updated it to fix the problem correctly and broken out the test that show the continued problem with next_week as "fixed" by ticket 6483.
I only hope that this ticket with its renewed attention gets swift attention, too.
-Rob
Rob Biedenharn http://agileconsultingllc.com Rob@AgileConsultingLLC.com