Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Conversation

@davivel
Copy link
Contributor

@davivel davivel commented May 5, 2017

No description provided.


private static final String PARAM_NAME = "name";
private static final String PARAM_PASSWORD = "password";
private static final String PARAM_EXPIRATION_DATE = "expireDate";
Copy link
Contributor

@davigonz davigonz May 5, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not important, but this variable value could be expirationDate

Copy link
Contributor Author

@davivel davivel May 5, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really, 'expireDate' is the name determined by the OCS Share API for the header, we need to use exactly that.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, you're right

} else if (mExpirationDateInMillis > 0) {
// set expiration date
DateFormat dateFormat = new SimpleDateFormat(FORMAT_EXPIRATION_DATE);
DateFormat dateFormat = new SimpleDateFormat(FORMAT_EXPIRATION_DATE, Locale.GERMAN);
Copy link
Contributor

@davigonz davigonz May 5, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

German 🇩🇪 🍺 ? Should it not be Locale.getDefault()?

Copy link
Contributor Author

@davivel davivel May 5, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Locale.getDefault() would build something based in the language selection in the device. This date is not to be shown to the user, but to send to the server, so we must be sure of using a set of symbols appropriate. Could have been other country, just chose one I expected not to fail. I don't know how Chinese of Japanese or Cyrillic locales would affect to the format, so I just avoided getDefault() and bet on safe :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@davivel davivel mentioned this pull request May 10, 2017
58 tasks
@davigonz davigonz merged commit bac38d1 into master May 15, 2017
@davigonz davigonz deleted the multiple_public_shares branch May 15, 2017 08:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants