[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] [ernie/master] Sort votes and consensus into correct directories.



Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date: Thu, 18 Mar 2010 09:51:00 +0100
Subject: Sort votes and consensus into correct directories.
Commit: aee26d8a000e71536b9d351a2edbc9badd6d7f7b

---
 src/ArchiveWriter.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/ArchiveWriter.java b/src/ArchiveWriter.java
index 628025c..04c559e 100644
--- a/src/ArchiveWriter.java
+++ b/src/ArchiveWriter.java
@@ -28,7 +28,7 @@ public class ArchiveWriter {
 
   public void storeConsensus(byte[] data, long validAfter) {
     SimpleDateFormat printFormat = new SimpleDateFormat(
-        "yyyy/MM/yyyy-MM-dd-HH-mm-ss");
+        "yyyy/MM/dd/yyyy-MM-dd-HH-mm-ss");
     printFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
     String filename = "directory-archive/consensus/"
         + printFormat.format(new Date(validAfter)) + "-consensus";
@@ -38,7 +38,7 @@ public class ArchiveWriter {
   public void storeVote(byte[] data, long validAfter,
       String fingerprint, String digest) {
     SimpleDateFormat printFormat = new SimpleDateFormat(
-        "yyyy/MM/yyyy-MM-dd-HH-mm-ss");
+        "yyyy/MM/dd/yyyy-MM-dd-HH-mm-ss");
     printFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
     String filename = "directory-archive/vote/"
         + printFormat.format(new Date(validAfter)) + "-vote-"
-- 
1.6.5