MFC r321293: date: avoid crash on invalid time

Description

MFC r321293: date: avoid crash on invalid time

localtime(3) returns NULL when passed an invalid time_t but date(1)
previously did not handle it. Exit with an error in that case.

PR: 220828
Submitted by: Vinícius Zavam

Details

Committed
emasteThu, Aug 31, 2:37 AM
Parents
rS323043: MFC r321806:
Branches
Unknown
Tags
Unknown