Signed-off-by: Roland Häder <roland@mxchange.org>
*/
public static String getFormattedTimestampFromUser (final User user, final Date date) {
// Get formatter
- DateFormat format = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM, user.getUserLocale());
+ final DateFormat format = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM, user.getUserLocale());
// Now simply format the calendar's Time (not just time) field
- String dateTime = format.format(date.getTime());
+ final String dateTime = format.format(date.getTime());
// Return it
return dateTime;