emaste d5e1936733 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
Reported by:	Vinícius Zavam
Reviewed by:	cem, kevans
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D11660
2017-07-20 15:28:48 +00:00
..
2017-06-06 21:50:00 +00:00
2017-02-28 23:42:47 +00:00
2017-06-07 05:33:56 +00:00
2017-02-28 23:42:47 +00:00
2017-03-25 13:32:28 +00:00
2017-07-20 15:28:48 +00:00
2017-02-28 23:42:47 +00:00
2017-06-23 15:02:49 +00:00
2016-10-05 19:26:35 +00:00
2017-02-28 23:42:47 +00:00
2016-11-28 07:21:09 +00:00
2017-06-20 20:50:54 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-06-05 16:00:10 +00:00
2017-03-07 04:51:35 +00:00
2017-03-09 04:20:00 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-05-07 11:44:25 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00