Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: A system variable to generate date in ISO8601 or RFC1123 data format #180

Closed
peterquirk opened this issue Apr 1, 2018 · 4 comments

Comments

@peterquirk
Copy link

  • VSCode Version:
    Version 1.21.1
    Commit 79b44aa704ce542d8ca4a3cc44cfca566e7720f1
    Date 2018-03-14T14:46:47.128Z
    Shell 1.7.9
    Renderer 58.0.3029.110
    Node 7.9.0
    Architecture x64
  • OS Version:
    Windows 10 Pro version 1803
  • REST Client Version:
    0.18.1
    The minio S3-compatible API requires a Date header in ISO 8601 of RFC 1123 format. The {{$timestamp}} system variable doesn't provide for format control. It would be helpful to add a format option to that system variable, or provide an alternate system variable that formats the date-time in a recognizable format.

Sample error code from minio:

HTTP/1.1 400 Bad Request
Accept-Ranges: bytes
Content-Type: application/xml
Server: Minio/RELEASE.2018-02-09T22-40-05Z (windows; amd64)
Vary: Origin
X-Amz-Request-Id: 15216EFD82DB700C
Date: Sun, 01 Apr 2018 22:03:04 GMT
Transfer-Encoding: chunked

MalformedDate Invalid date format header, expected to be in ISO8601, RFC1123 or RFC1123Z time format. /pqbucket1 3L137 3L137
@Huachao
Copy link
Owner

Huachao commented Apr 3, 2018

@peterquirk I add new new system variable named datetime, so that you can reference this variable with {{$datetime iso8601}} or {{$datetime rfc1123}}

@peterquirk
Copy link
Author

Thank you - this is perfect!
Peter

@Huachao
Copy link
Owner

Huachao commented Apr 17, 2018

@peterquirk you can try the latest version 0.18.2 to verify

@hitalos
Copy link

hitalos commented Nov 23, 2018

Is it possible to add RFC3339 to the options?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants