time-util: make parse_timestamp() return -EINVAL if the input is very old date (...
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 11 Jul 2017 17:12:48 +0000 (02:12 +0900)
committerLennart Poettering <lennart@poettering.net>
Tue, 11 Jul 2017 17:12:48 +0000 (19:12 +0200)
commit68bdd2d2d3c88dd738c2b9a6fabf518111e204a9
treefe08135c63ce9f6cbf83cf6109275a3dd8b9faa2
parent634735b56b82bdde3c67193ba7b470bab80fdcbd
time-util: make parse_timestamp() return -EINVAL if the input is very old date (#6327)

This reverts 7635ab8e74ea4a94e81143c3077570a986df375c and makes parse_timestamp()
return -EINVAL if the input is older than 1970-01-01.

Fixes #6290.
src/basic/time-util.c
src/test/test-date.c