More data...

I just started Plucker Desktop this morning, 5:40.  The target dates for 
some of the items was 5:00 (well, 5:14, etc., as described previously.)

The daily ones that have passed came up pre-incremented.

So that's the problem...  Here's what's happening in your code.

At startup, main_listctrl::init() calls load_rows(), which reads the Due 
Date for the Channel to put into the listview...
using this line (633 of Main_ListCtrl.cpp):
        due_datetime   = 
plucker_controller::get()->get_channel_due_datetime( channel_section );

Unfortunately, get_channel_due_datetime() in plucker_controller.cpp has the 
logic:
     incremented_datetime    = get_incremented_channel_due_datetime( 
channel_section, 1 );

     if ( update_base_datetime.IsLaterThan( current_datetime ) )
         return update_base_datetime;
    else
         return incremented_datetime;

In other words, if the due date is passed, it will return an increment over 
the due date.

Which, for days, is 24 hours forward rather than merely a few minutes forward.

My suggestion would be to separate the functions of loading due dates and 
calcuating subsequent ones.  This could simplify your code a bit since 
get_incremented_channel_due_datetime() is only used here and in 
set_channel_update_base().

(I currently lack authorization to fix and check it in myself.)

Hope this helps.

_______________________________________________
plucker-list mailing list
[EMAIL PROTECTED]
http://lists.rubberchicken.org/mailman/listinfo/plucker-list

Reply via email to