imagesdirectory-camera icon indicating copy to clipboard operation
imagesdirectory-camera copied to clipboard

README: correcting begin/end timestamp format

Open brianhanifin opened this issue 3 years ago • 0 comments

Correcting begintimestamp & endtimestamp format to match the Regular Expression test in the code.

I was following the mm/dd/yyyy hh:mm:ss format specified in the documentation, but imagedirector.delete_files kept failing. It wasn't until I took a screenshot of the error message that I figured out why. The regular expression test was failing because the code wants the day to appear before the month. I have corrected the documentation so that the next person could have better luck.

Error:

Failed to call service imagedirectory.delete_files. value 02/26/2021 00:00:00 does not match regular expression [0-3][0-9]/[0-1][0-9]/\d{4} [0-2]:[0-5][0-9]:[0-5][0-9] for dictionary value @ data['endtimestamp']

brianhanifin avatar Feb 28 '21 22:02 brianhanifin