Skip to content

Instantly share code, notes, and snippets.

@enebo
Created April 12, 2018 21:41
Show Gist options
  • Save enebo/25bb5f1a37cae52d32ecd13eef4871ed to your computer and use it in GitHub Desktop.
Save enebo/25bb5f1a37cae52d32ecd13eef4871ed to your computer and use it in GitHub Desktop.
diff --git a/src/java/arjdbc/util/DateTimeUtils.java b/src/java/arjdbc/util/DateTimeUtils.java
index e341fe4a..6e7cbacf 100644
--- a/src/java/arjdbc/util/DateTimeUtils.java
+++ b/src/java/arjdbc/util/DateTimeUtils.java
@@ -462,7 +462,8 @@ public abstract class DateTimeUtils {
for ( ; numlen < 3; ++numlen ) millis *= 10;
}
else {
- nanos = extractIntValue(str, start + 1, end);
+ millis = extractIntValue(str, start + 1, start + 4);
+ nanos = extractIntValue(str, start + 5, end);
for ( ; numlen < 9; ++numlen ) nanos *= 10;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment