1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/api/types/time
Sebastiaan van Stijn 48cfe3f087
Improve GetTimestamp parsing
`GetTimestamp()` "assumed" values it could not parse
to be a valid unix timestamp, and would use invalid
values ("hello world") as-is (even testing that
it did so).

This patch validates unix timestamp to be a valid
numeric value, and makes other values invalid.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2018-05-20 13:07:17 +02:00
..
duration_convert.go Add canonical import comment 2018-02-05 16:51:57 -05:00
duration_convert_test.go Add canonical import comment 2018-02-05 16:51:57 -05:00
timestamp.go Improve GetTimestamp parsing 2018-05-20 13:07:17 +02:00
timestamp_test.go Improve GetTimestamp parsing 2018-05-20 13:07:17 +02:00