/** * Formats a timestamp in the format expected by Sentry. * * @param timestamp timestamp to format * @return formatted timestamp */ protected String formatTimestamp(long timestamp) { return DateFormatUtils.formatUTC(timestamp, DateFormatUtils.ISO_DATETIME_FORMAT.getPattern()); }
/** @param date */ protected static String formatDateWithMillis(Calendar date) { return DateFormatUtils.formatUTC( date.getTimeInMillis(), "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); // $NON-NLS-1$ }