Add UTC date to the Subject instead of adding it to the body

This commit is contained in:
ujjwal2900 2024-09-08 13:06:21 +05:30
parent d9b8dee62f
commit e2cb091a04

View file

@ -36,16 +36,18 @@ public class FeedbackContentCreator {
* Construct the feedback section title
*/
//Get the UTC Date and Time
final SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss", Locale.ENGLISH);
//Get the UTC Date and Time and add it to the Title
final SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy", Locale.ENGLISH);
dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
final String UTC_FormattedDateTime = dateFormat.format(new Date());
final String UTC_FormattedDate = dateFormat.format(new Date());
sectionTitleBuilder = new StringBuilder();
sectionTitleBuilder.append("Feedback from ");
sectionTitleBuilder.append(AccountUtil.getUserName(context));
sectionTitleBuilder.append(" for version ");
sectionTitleBuilder.append(feedback.getVersion());
sectionTitleBuilder.append(" on ");
sectionTitleBuilder.append(UTC_FormattedDate);
/*
* Construct the feedback section text
@ -106,10 +108,6 @@ public class FeedbackContentCreator {
sectionTextBuilder.append("~~~~");
sectionTextBuilder.append("\n");
//Add the UTC Date and Time to Feedback
sectionTextBuilder.append("Generated on: ");
sectionTextBuilder.append(UTC_FormattedDateTime);
sectionTextBuilder.append("\n");
}
public String getSectionText() {