Skip to content

Commit

Permalink
Merge pull request #10 from uwemaurer/master
Browse files Browse the repository at this point in the history
Make RavenClient public
  • Loading branch information
kencochrane committed Apr 16, 2012
2 parents e317f0d + 1eca317 commit 6365228
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -187,4 +187,4 @@ Contributors
- Ken Cochrane (@KenCochrane)
- Kevin Wetzels (@roambe)
- David Cramer (@zeeg)
- Mark Philpot (@griphiam)
- Mark Philpot (@griphiam)
2 changes: 1 addition & 1 deletion src/main/java/net/kencochrane/sentry/RavenClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/net/kencochrane/sentry/RavenUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

/**
Expand Down

0 comments on commit 6365228

Please sign in to comment.