go2null / redmine_account_policy

Password Expiry and other enhancements
GNU General Public License v3.0
3 stars 13 forks source link

BUGFIX: Account Policy runs multiple times a day due to type mismatch #22

Closed farkwun closed 8 years ago

farkwun commented 8 years ago

run_account_policy_daily_tasks saves object of type Date in memory equivalent to today's date, which is translated to string

However, the date comparison in already_ran_today expects a Date object, such that account policy ends up running multiple times!

Now, run_account_policy_daily_tasks saves a String in a specific format, which is then compared to today's date in the same string format.