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.
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.”
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
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.