Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #10 from uwemaurer/master

Make RavenClient public
  • Loading branch information...
commit 6365228db7d0eb5bf3e760c88a860311fc833983 2 parents e317f0d + 1eca317
@kencochrane kencochrane authored
View
4 README.rst
@@ -126,7 +126,7 @@ Create an instance of the client::
Now call out to the raven client to capture events::
// record a simple message
- client.captureMessage('hello world!')
+ client.captureMessage("hello world!");
// capture an exception
try {
@@ -187,4 +187,4 @@ Contributors
- Ken Cochrane (@KenCochrane)
- Kevin Wetzels (@roambe)
- David Cramer (@zeeg)
-- Mark Philpot (@griphiam)
View
2  src/main/java/net/kencochrane/sentry/RavenClient.java
@@ -17,7 +17,7 @@
* Time: 11:59 AM
*/
-class RavenClient {
+public class RavenClient {
private static final String RAVEN_JAVA_VERSION = "Raven-Java 0.4";
private RavenConfig config;
View
6 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());
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.