Allow DateTimeFormatter to format zero.

This addresses the note raised in issue #4393 after merge that zero is a
valid UNIX timestamp.
Merge branch 'pr4391'
Close #4391
Merge pull request #4398 from akrabat/hotfix/4393b

Allow DateTimeFormatter to format zero.
Merge branch 'hotfix/4398' into develop

Forward port #4398