mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-31 14:53:59 +01:00 
			
		
		
		
	Add UTC date to the Subject instead of adding it to the body
This commit is contained in:
		
							parent
							
								
									d9b8dee62f
								
							
						
					
					
						commit
						e2cb091a04
					
				
					 1 changed files with 5 additions and 7 deletions
				
			
		|  | @ -36,16 +36,18 @@ public class FeedbackContentCreator { | ||||||
|          * Construct the feedback section title |          * Construct the feedback section title | ||||||
|          */ |          */ | ||||||
| 
 | 
 | ||||||
|         //Get the UTC Date and Time |         //Get the UTC Date and Time and add it to the Title | ||||||
|         final SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss", Locale.ENGLISH); |         final SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy", Locale.ENGLISH); | ||||||
|         dateFormat.setTimeZone(TimeZone.getTimeZone("UTC")); |         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 = new StringBuilder(); | ||||||
|         sectionTitleBuilder.append("Feedback from  "); |         sectionTitleBuilder.append("Feedback from  "); | ||||||
|         sectionTitleBuilder.append(AccountUtil.getUserName(context)); |         sectionTitleBuilder.append(AccountUtil.getUserName(context)); | ||||||
|         sectionTitleBuilder.append(" for version "); |         sectionTitleBuilder.append(" for version "); | ||||||
|         sectionTitleBuilder.append(feedback.getVersion()); |         sectionTitleBuilder.append(feedback.getVersion()); | ||||||
|  |         sectionTitleBuilder.append(" on "); | ||||||
|  |         sectionTitleBuilder.append(UTC_FormattedDate); | ||||||
| 
 | 
 | ||||||
|         /* |         /* | ||||||
|          * Construct the feedback section text |          * Construct the feedback section text | ||||||
|  | @ -106,10 +108,6 @@ public class FeedbackContentCreator { | ||||||
|         sectionTextBuilder.append("~~~~"); |         sectionTextBuilder.append("~~~~"); | ||||||
|         sectionTextBuilder.append("\n"); |         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() { |     public String getSectionText() { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 ujjwal2900
						ujjwal2900