Use LocalDateTime for date header formatting

There were issues, where time entry would show up on wrong date,
and the wrong date seemed to be missing correct time zone.
Merge branch 'master' into builds
7.631