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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Been ignoring my ChkDate bug long enough.....
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

bobby131313
Senior Member

USA
1163 Posts

Posted - 27 March 2009 :  07:46:43  Show Profile  Visit bobby131313's Homepage
I put this in the Mod forum since it's far from "stock" due to the Today/Yesterday mod and the User Space mod.

The function works perfectly except when a topic or post is between 1 hour and 1 hour and 1 minute old in which case it says "0 minutes ago" instead of "1 hour ago". I'm kinda lost on this one and would appreciate any help. Thanks in advance.

http://www.coincommunity.com/zmisc/ChkDate.txt

<<edit to add text link, didn't think the function was that long till I looked at it posted >>

Switch the order of your title tags

Edited by - bobby131313 on 27 March 2009 07:49:51

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 27 March 2009 :  09:00:11  Show Profile
Only had a quick glance at your code but I think this line:
if DateDiff("n",strToDate(fDate),strForumTimeAdjust) > 60 then
may be the problem - try using second instead of minutes.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 29 March 2009 :  08:52:08  Show Profile
Hi Bobby,
I kinda recall the same problem a few years ago, and managed a tweak with the stirling input from Shaggy. All seems to work well; Comparing your two functions 'chkdate' and 'chktime' with my version there appears to be quite a few differences, epecially around the way the date/time is to be displayed. Please find my version here, hopefully this may help.. Download text file
Good luck
Andy
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 29 March 2009 :  10:04:44  Show Profile  Visit bobby131313's Homepage
Thanks guys, hopefully I'll get a chance to play with this today. I appreciate your help.

Switch the order of your title tags
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 30 March 2009 :  10:27:48  Show Profile  Visit bobby131313's Homepage
Got 'er all fixed. I didn't go too crazy looking. I swapped out with Andy's version watched it for a little while and it worked. Added back the cosmetic changes that I had done a while ago and all is working well.

Thank you!

Switch the order of your title tags

Edited by - bobby131313 on 30 March 2009 10:28:09
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.23 seconds. Powered By: Snitz Forums 2000 Version 3.4.07