Skip to content

Commit

Permalink
fix #339 - Invalid TIMESTAMP to java.util.Calendar parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
tminglei committed Mar 17, 2017
1 parent 8c10f87 commit 374e047
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ object PgDateSupportUtils {
useCal.set(Calendar.HOUR_OF_DAY, hour.get(ts).asInstanceOf[Int])
useCal.set(Calendar.MINUTE, minute.get(ts).asInstanceOf[Int])
useCal.set(Calendar.SECOND, second.get(ts).asInstanceOf[Int])
useCal.set(Calendar.MILLISECOND, nanos.get(ts).asInstanceOf[Int] / 1000)
useCal.set(Calendar.MILLISECOND, nanos.get(ts).asInstanceOf[Int] / 1000000)

useCal
}
Expand Down

0 comments on commit 374e047

Please sign in to comment.