Skip to content

Commit

Permalink
0001511: Firebird TIME fields don't synchronize properly because of t…
Browse files Browse the repository at this point in the history
…he fractional seconds component
  • Loading branch information
chenson42 committed Dec 30, 2013
1 parent f4e171b commit a4bfe46
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -537,6 +537,11 @@ public java.util.Date parseDate(int type, String value, boolean useVariableDates
}
} else if (type == Types.TIME) {
if (value.indexOf(".") == 8) {
/*
* Firebird (at least) captures fractional seconds
* in time fields which need to be parsed by
* Timestamp.valueOf
*/
return Timestamp.valueOf("1970-01-01 " + value);
} else {
return FormatUtils.parseDate(value, FormatUtils.TIME_PATTERNS);
Expand Down

0 comments on commit a4bfe46

Please sign in to comment.