-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Added date and time to Feedback #5797
Added date and time to Feedback #5797
Conversation
app/src/main/java/fr/free/nrw/commons/feedback/FeedbackContentCreator.java
Outdated
Show resolved
Hide resolved
2db3ee4
to
d9b8dee
Compare
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.
Sorry I missed this on the first pass.
//Add the UTC Date and Time to Feedback | ||
sectionTextBuilder.append("Generated on: "); | ||
sectionTextBuilder.append(UTC_FormattedDateTime); | ||
sectionTextBuilder.append("\n"); |
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.
Hi @nicolas-raoul , I have added just the date to the subject just to keep it short instead of adding the full date and time. |
@@ -32,11 +35,19 @@ public void init() { | |||
/* | |||
* Construct the feedback section title | |||
*/ | |||
|
|||
//Get the UTC Date and Time and add it to the Title | |||
final SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy", Locale.ENGLISH); |
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.
-
Would you mind making it
yyyy/MM/dd
as it is a less ambiguous format? -
Please append
HH:mm:ss
as users often report several things on the same day, and having the same title breaks the wikilinks.
So to summarize I think yyyy/MM/dd HH:mm:ss
would be the best.
HI @nicolas-raoul , Pls review the last commit. I have changes the format as requested. |
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.
Perfect, thanks a lot for your contribution, and for your patience! :-)
Unit tests passing.
* Add Date and Time in UTC format to Feedback * Add UTC date to the Subject instead of adding it to the body * Change the UTC Date format to yyyy/MM/dd HH:mm:ss * Minor changes --------- Co-authored-by: Nicolas Raoul <[email protected]>
Description (required)
Fixes #5564
What changes did you make and why?
Appended the current date and time to feedback which will help in understanding when was the feedback given and if the problem still exists.
Tests performed (required)
Tested {build variant, e.g. ProdDebug} on {Pixel Fold API 35} with API level {35}.