I am in serious situation when developing a library management system, if someone return a book, there is a function to insert book details to database which takes system date as returned date, then comparing borrowed date and returned date I can calculate fine if any, but thing is by changing the system date to a previous date above current date anyone can return the book without effecting to the fine because it insert system date as current date and it changed now.
example :
think loan duration is 7 days then
borrow date is 11/05/2012
return date 20/05/2012 (think this is today and it get as a system date)
Now there is 2 days of delay (so there is a fine to calculate)
if I change system date to the previous date like 15/05/2012 then it take the system date as a changed date so there can be a book returning without calculating fine which must calculate the fine ?