WebGUI
      Click here to register.
      
PBWG Banner


     Report a Bug > WebGUI Bug Tracker

Clear Login History period is calculated 24 times longer if it is set in months

User todor_k
Date 3/24/2007 4:12 pm
Severity Minor (annoying, but not harmful)
Version WebGUI 7.3.13
Views 62
Rating -1    Rate [
|
]
Karma Rank 0.000000
Previous · Next
User Message
todor_k

Hi guys,

I noticed that my login history nevertheless is set to 3 months (90 days) in 

AdminBar->Workflow->Weekly Maintenance Tasks->Delete login entries older than 90 days

has an enties more than one year old (the time we have installed WebGUI).

 

it seems that the conversion from days to seconds is performed twice. Once when it is set in the database table WorkflowActivityData, where I see 3 months (90 days) in seconds and secondly when this information is taken from the database when the sub execute is executed from the package "WebGUI::Workflow::Activity::CleanLoginHistory" when the Scheduled task is performed:

$self->session->db->write("delete from userLoginLog where timeStamp < ?", [(time()-(86400*$self->get("ageToDelete")))]); 

Todor  Kouyoumdjiev
ECoCoMS Ltd.
www.ecocoms.com



Back to Top
Rate [
|
]
 
 
colink

Thanks for the patch!

Fixed in 7.3.14 



Back to Top
Rate [
|
]