Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Discussions (General)
 (v3.4.x) Bug: Wrong date calculation
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Deleted
deleted

4116 Posts

Posted - 06 November 2002 :  00:48:54  Show Profile
In admin_accounts_pending.asp, on line 403:

days = DateDiff("d",  ChkDate(MP_MemberDate,"",false),  strForumTimeAdjust)


This calculates the days passed from membership begin. I found a value of 178 there yesterday. I think it should be:


days = DateDiff("d",  StrToDate(MP_MemberDate),  strForumTimeAdjust)


Stop the WAR!

Edited by - Deleted on 06 November 2002 10:16:51

GauravBhabu
Advanced Member

4288 Posts

Posted - 06 November 2002 :  10:38:41  Show Profile
Both statements are referring to same datestring(MP_MemberDate). The only difference is that the first statement eliminates the time part (due to "false" as an argument while calling function chkDate) from the MP_MemberDate and second statement retains both date and time of registration. That should not make difference in calculating the days.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.19 seconds. Powered By: Snitz Forums 2000 Version 3.4.07