3 ms·
> Search for "23:59:59" or any use of local server time and you got yourself a bug. I thought this meant to search the logs / database and I was absolutely hor
by jhardy54 6y ago
> Search for "23:59:59" or any use of local server time and you got yourself a bug.
I thought this meant to search the logs / database and I was absolutely horrified that maybe I didn't understand how time works.
I think you're talking about hardcoding 23:59:59 as EOD in the source code though, right?
- lmilcin 6y agoYes. 23:59:59 is used when somebody wants to get end of day but doesn't know to take beginning of current day and add 1 day to it. End of today is actually 00:00:00 of tomorrow. For some reason developers don't want to have tomorrow's date in the timestamp when they think about events happening today but this is ok, because it should be used as upper limit (ie. with some kind of less than operator).