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

add expires option to use ISO 8601 DateTime format string #85

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

cobracmder
Copy link
Contributor

changed expires option to use ISO 8601 DateTime format string joyent/node-manta##61

@rmustacc
Copy link

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.

@cobracmder
Copy link
Contributor Author

@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,
Copy link
Contributor

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.

@cobracmder
Copy link
Contributor Author

@jclulow all suggestions have been taken and committed.

@mcavage
Copy link
Contributor

mcavage commented Oct 17, 2013

Hey Carlos,

This won't pass lint checks -- please run make prepush and clean those up, then I'll merge (and I can regen the manpages).

m

@cobracmder
Copy link
Contributor Author

How do I do this on Windows?

@mcavage
Copy link
Contributor

mcavage commented Oct 18, 2013

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.

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

Successfully merging this pull request may close these issues.

4 participants