Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[SYMMETRICDS-88] - Bug in threshold writer. Additional date/time pattern
  • Loading branch information
chenson42 committed May 18, 2009
1 parent 70fd5b7 commit 333a16a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Expand Up @@ -85,6 +85,7 @@ public void flush() throws IOException {
@Override
public void write(char[] cbuf, int off, int len) throws IOException {
if (fileWriter != null) {
fileWriter.write(cbuf, off, len);
} else if (len + buffer.length() > threshhold) {
if (file == null) {
file = AppUtils.createTempFile(tempFileCategory == null ? "threshold.file.writer" : tempFileCategory);
Expand Down
Expand Up @@ -59,7 +59,7 @@
public class TableTemplate {
public static final String REQUIRED_FIELD_NULL_SUBSTITUTE = " ";

public static final String[] TIMESTAMP_PATTERNS = { "yyyy-MM-dd HH:mm:ss.S", "yyyy-MM-dd HH:mm:ss", "yyyy-MM-dd" };
public static final String[] TIMESTAMP_PATTERNS = { "yyyy-MM-dd HH:mm:ss.S", "yyyy-MM-dd HH:mm:ss", "yyyy-MM-dd HH:mm", "yyyy-MM-dd" };

public static final String[] TIME_PATTERNS = { "HH:mm:ss.S", "HH:mm:ss", "yyyy-MM-dd HH:mm:ss.S",
"yyyy-MM-dd HH:mm:ss" };
Expand Down

0 comments on commit 333a16a

Please sign in to comment.