forked from cloudfoundry/cloud_controller_ng
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
V3: valid timestamps → subset of ISO 8601
Timestamps are typically used when querying audit_events, e.g. `GET /v3/audit_events?created_at=2020-06-30T23:49:04Z` We enforce an opinionated subset of ISO 8601: - must match `YYYY-MM-DDThh:mm:ssZ` - no subseconds - no local timezones We updated our tests to accommodate the "no local timezones" stricture (we used `Time.now.utc` to force UTC). We did a simple regex to guard against bad timestamps. It is admittedly ugly, but late is the hour. [#173542711] Authored-by: Brian Cunnie <[email protected]>
- Loading branch information
Showing
3 changed files
with
49 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters