I have a mod that I am using and it outputs Today or Yesterday in the last post section....not too hard. Well it seems that after it rolls over 12 hours, it changes Today to Yesterday.
For example, I post today at 9:45 a.m. and it displays Today. At 9:45 p.m., it changes to Yesterday.
One of my users posted TODAY at 3:16:50 p.m. it is now 9:35:15 and it is marked as tomorrow...I have been looking at the cod and it looks pretty straight forward.
If date = date then Today, if date = date -1 then Yesterday....at least to that effect (I am still learning ASP).
langiujc, I just checked your forum... looks OK to me. It works with the "you last visited" code in default.asp, and I don't see anything wrong anywhere else.
I used the demo account and posted 3 topics at around 11:50 and they all immediately displayed as "Yesterday". I waited until after 12:00 midnight and posted a 4th time. This 4th post came up as "Today" and the other 3 still read "Yesterday".