Change debug.log from UTC to localtime. Fixes #3872.