Got this odd little bug forwarded to me from a client:
There seems to be a minor bug in the Article / Resource "add" page, and perhaps elsewhere, but I haven't tried to track down whether or not it comes up everywhere. When the time of day is between the hour and the half hour, the default posting time is 12:00am. After the half hour, the default posting time is the correct time of day.
I looked into it and it was a weird bug left over from the initial implementation. I fixed it on a test site and checked it into CVS.
The original author was making the number of minutes round down to the next lowest 15 minutes this way:
floor($minutes / 15) * 15
(and casting it to an
int) but then he simply concatenated that value with the number of hours, which worked great 3/4 of the time. In the case of anything less than 15, however, that expression evaluates to zero, so after concatenation, you got:
10:0
instead of the
10:00
that you would expect. A quick
sprintf() fixed it.
The upshot is, the bug only happens on the first 15 minutes of each hour, which is why nobody from our first Syntax client forward has noticed it until now, I'm guessing.
Anyway, if you see this bug, that's the class to update from CVS.
Update: Oops, that class I'm referring to is
pxdb_widget in
private/lib/ext/PxDB/classes/content/input/