-
Notifications
You must be signed in to change notification settings - Fork 54
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
add expires option to use ISO 8601 DateTime format string #85
base: master
Are you sure you want to change the base?
Conversation
Why are we breaking existing options? While neither absolute date format is really that appealing we shouldn't break what already exists. I though @jclulow was already working on the form of this that allows relative dates. |
@rmustacc I resolved it so it takes either an ISO time string or epoch seconds like before. |
@@ -119,7 +141,7 @@ function parseOptions() { | |||
opts.paths.forEach(function (p) { | |||
var _opts = { | |||
algorithm: opts.algorithm, | |||
expires: opts.expires, | |||
expires: expiresAt, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just call validateDate(opts.expires)
directly, here.
@jclulow all suggestions have been taken and committed. |
Hey Carlos, This won't pass lint checks -- please run m |
How do I do this on Windows? |
None of our development tooling (lint/style/test/build/make) is setup, tested or supported on Windows. You should have a Unix VM somewhere; if not you could always mlogin and validate there for a few minutes. |
changed expires option to use ISO 8601 DateTime format string joyent/node-manta##61