dmwm / DMWMMON

1 stars 8 forks source link

Add timestamp validation #13

Closed nataliaratnikova closed 8 years ago

nataliaratnikova commented 9 years ago

Add a check in the time stamp validation step to prevent upload data for a future date.

nataliaratnikova commented 8 years ago

Added check for timestamp against current time , allowing a 1 hour 15 minutes window for clock skew, connection overhead and day-light-savings. Included the rejected timestamp and corresponding date in human readable format into the error message returned by the server.

Fixed the function used for the time validation parameter to check for int instead of srt2time as we expect time in seconds since epoch, rather than a string.

Include this in 1.0.5 and schedule for HG201512 release.