Fix localtime in messages #3812