> I have some code here: > > http://github.com/cjwoodward/proper_time_zones > > I have removed a bunch of other tests but I'd be interested to get the > one test working. > > To test it get the code out and run bacon test.rb > > Then change the system time to 7am and re-run the tests. > > I'd love to here that I am doing stupid things (most likely to be > the case).
Yep, you're doing stupid things :) https://gist.github.com/d9e28aa1c7d035244186 Hash-based conditions convert zoned times to database times for you. Interpolated conditions you need to convert yourself. -- tim --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en -~----------~----~----~----~------~----~------~--~---
