update: Fixed date&time handling

* It turns out empty dates and times do cause trouble.

Signed-off-by: mr.Shu <mr@shu.io>