public
Description: Tracks is a GTD(TM) web application, built with Ruby on Rails
Homepage: http://www.rousette.org.uk/projects/
Clone URL: git://github.com/bsag/tracks.git
Click here to lend your support to: tracks and make a donation at www.pledgie.com !
hopefully fix time that a todo comes from tickler

assumes the datetime in db is in utc
lrbalt (author)
Mon Aug 25 08:20:27 -0700 2008
commit  4ac09ed3ae391672f4077c0991b0bb8fc6424756
tree    88b18535756c19f7513e946e18342ccb628dadd5
parent  4e12cfafb2cb2291895e976c6df365d4beca221b
...
71
72
73
74
 
 
75
76
77
...
71
72
73
 
74
75
76
77
78
0
@@ -71,7 +71,8 @@ class User < ActiveRecord::Base
0
            :conditions => [ 'state = ?', 'deferred' ],
0
            :order => 'show_from ASC, todos.created_at DESC' do
0
               def find_and_activate_ready
0
-                find(:all, :conditions => ['show_from <= ?', proxy_owner.time ]).collect { |t| t.activate! }
0
+                # assumes that active record uses :utc to store datetime in db
0
+                find(:all, :conditions => ['show_from <= ?', Time.now.utc ]).collect { |t| t.activate! }
0
               end
0
            end
0
   has_many :completed_todos,

Comments