Rerurn to Romy the Cat's Site


In the Forum: Site Support Forum
In the Thread: Editing your own posts
Post Subject: Erratic dates comparing….Posted by Romy the Cat on: 3/5/2009
fiogf49gjkf0d

I spent 3 hours trying to figure out why a single line of code suddenly stopped to work. It is ridicules as the line where the dates are compared suddenly stopped to compare them. I will look into it further but at this point I have no idea why it starts to behave this way.           

  if (Globals.GetSiteSettings().PostDeleteAgeInMinutes > 0)
      if (post.PostDate < DateTime.Now.AddMinutes(-Globals.GetSiteSettings().PostEditBodyAgeInMinutes))
         throw new ForumException(ForumExceptionType.PostEditPermissionExpired);
break;

Rerurn to Romy the Cat's Site