date.c: validate and set time in a helper function
authorĐoàn Trần Công Danh <redacted>
Fri, 24 Apr 2020 15:07:30 +0000 (22:07 +0700)
committerJunio C Hamano <redacted>
Fri, 24 Apr 2020 21:06:09 +0000 (14:06 -0700)
commit4f89f4fc9ac494fde3f3bede19a7599f77afe8dc
treef21a5dceba50bb2cfc746ad5bd2df1f4a2e6dd73
parentc933b28d87062a0c68de298900b9060f577f865a
date.c: validate and set time in a helper function

In a later patch, we will reuse this logic, move it to a helper, now.

While we're at it, explicit states that we intentionally ignore
old-and-defective 2nd leap second.

Signed-off-by: Đoàn Trần Công Danh <redacted>
Signed-off-by: Junio C Hamano <redacted>
date.c
git clone https://git.99rst.org/PROJECT