[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] [ernie/master] Set timezone to UTC, stupid.
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date: Thu, 11 Mar 2010 00:37:32 +0100
Subject: Set timezone to UTC, stupid.
Commit: da65b80bc69690fa2a8d8fd9c783c77033f5cd4b
---
src/TorperfProcessor.java | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/TorperfProcessor.java b/src/TorperfProcessor.java
index f7b3ed3..d2bb050 100644
--- a/src/TorperfProcessor.java
+++ b/src/TorperfProcessor.java
@@ -57,7 +57,9 @@ public class TorperfProcessor {
pop.getName().indexOf("."));
BufferedReader br = new BufferedReader(new FileReader(pop));
String line = null;
- Format formatter = new SimpleDateFormat("yyyy-MM-dd,HH:mm:ss");
+ SimpleDateFormat formatter =
+ new SimpleDateFormat("yyyy-MM-dd,HH:mm:ss");
+ formatter.setTimeZone(TimeZone.getTimeZone("UTC"));
while ((line = br.readLine()) != null) {
String[] parts = line.split(" ");
// remove defective lines as they occurred on gabelmoo as well
--
1.6.5