Just noticed the last mod date on an item in the results
Unless we've started 0 indexing months, that's not possible.
Other dates look OK, so I'm guessing we've used a %M instead of %m somewhere
%M
%m
assigned to @btasker
The API response is correct
So it must be on the Javascript side.
mentioned in commit aa72335e83fc5168bc4780a39f0547e6e5fb1f41
Commit: aa72335e83fc5168bc4780a39f0547e6e5fb1f41 Author: B Tasker Date: 2024-01-01T11:57:14.000+00:00
fix: shift months to be 1 indexed (utilities/file_location_listing#28)
The underlying issue was that we're calling Javascript's Date.getMonth() which is 0 indexed.
Date.getMonth()
So, although the other dates look correct, they were actually all off by 1 month.
mentioned in issue #29
Activity
01-Jan-24 11:52
assigned to @btasker
01-Jan-24 11:54
The API response is correct
So it must be on the Javascript side.
01-Jan-24 11:57
mentioned in commit aa72335e83fc5168bc4780a39f0547e6e5fb1f41
Message
fix: shift months to be 1 indexed (utilities/file_location_listing#28)
01-Jan-24 11:58
The underlying issue was that we're calling Javascript's
Date.getMonth()
which is 0 indexed.So, although the other dates look correct, they were actually all off by 1 month.
01-Jan-24 12:00
mentioned in issue #29