Fix timestamp validation

Bug: 61058
Change-Id: Icc19da3626a090bed04eb9773c748e90223ab3f4