EmonCMS3 Daily graphs go from 13:00 -> 13:00 not midnight->midnight

The daily offset seems to be wrong. Any help would be appreciated.

I'm running emonCMS3 on a raspberry Pi.

The server time is set to my current timezone. so the server time is correct.

The time shown in the x-axis of the simple zoom graph is correct. ie the graph is drawn up to the current time.

Just the daily offset is wrong. 

I'd like to have the kWh counts starting at midnight. not 1pm.