Permalink
Browse files

send time string in UTC not localtime

  • Loading branch information...
1 parent 74dbb9f commit 0866649cbd57c85e646cbdbfe00bd6d66071cf65 @uwemaurer uwemaurer committed Apr 16, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/main/java/net/kencochrane/sentry/RavenUtils.java
@@ -76,14 +76,14 @@ public static String getHostname() {
}
/**
- * Convert a java date into the ISO8601 format YYYYMMDDTHH:mm:ss+HH:00
- * note the added colon for the Timezone
+ * Convert a java date into the ISO8601 format YYYYMMDDTHH:mm:ss
+ * in timezone UTC
*
* @param date the date to convert
* @return ISO8601 formatted date as a String
*/
public static String getDateAsISO8601String(Date date) {
- return DateFormatUtils.ISO_DATETIME_FORMAT.format(date);
+ return DateFormatUtils.formatUTC(date, DateFormatUtils.ISO_DATETIME_FORMAT.getPattern());
}
/**

0 comments on commit 0866649

Please sign in to comment.