Skip to content

Commit

Permalink
Update src/main/java/com/microsoft/sqlserver/jdbc/DDC.java
Browse files Browse the repository at this point in the history
Co-authored-by: ulvii <[email protected]>
  • Loading branch information
lilgreenbird and ulvii authored May 22, 2020
1 parent 447cfdc commit c4db1b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/microsoft/sqlserver/jdbc/DDC.java
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ private static LocalDateTime parseStringIntoLDT(String s) {
// Convert the time; default missing nanos
int len = s.length();
if (firstColon > 0 && secondColon > 0 && secondColon < len - 1) {
hour = Util.parseInt(s, dividingSpace + 1, firstColon, 10);
hour = Integer.parseInt(s.subSequence(dividingSpace + 1, firstColon).toString());
minute = Util.parseInt(s, firstColon + 1, secondColon, 10);
if (period > 0 && period < len - 1) {
second = Util.parseInt(s, secondColon + 1, period, 10);
Expand Down

0 comments on commit c4db1b6

Please sign in to comment.