Check out Grant Acedrex, our featured variant for April, 2024.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Single Comment

What's New page error[Subject Thread] [Add Response]
🕸Fergus Duniho wrote on Thu, May 17, 2012 01:32 PM UTC:
I've now fixed the problem. To calculate the time difference, it
calculated the time in seconds from formatted dates, and even though the two dates
were in the same format, it was treating them as though they were not.
Referring to documentation for mktime and the format used for the dates, I
made the proper corrections. I also made an optimization. Since all it
needed for the current date was the time in seconds, I commented out the
roundabout way it was getting the time from a formatted version of the
current time and just called time(). This gave the same results.