Almost all of the log files I work with are in UTC (GMT) and from multiple time zones.
So the question of "what means a new day" can be relevant.
If the OP's system is just single time zone and doesn't have to deal with this maybe +10 hour or whatever difference, OK.
I did like your solution, the minor quibble is about time zone stuff.