was a partial hour and less than gmt (i.e. -02:30) the code would corrupt the
minutes part.
Modified Files:
jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
}
else
{
- sbuf.append( -l_houros);
+ sbuf.append(-l_houros);
}
int l_minos = l_offset - (l_houros * 60);
if (l_minos != 0)
{
- if (l_minos < 10)
+ if (l_minos > -10 && l_minos < 10)
sbuf.append('0');
- sbuf.append(l_minos);
+ if (l_minos >= 0)
+ {
+ sbuf.append(l_minos);
+ }
+ else
+ {
+ sbuf.append(-l_minos);
+ }
}
sbuf.append("'");
bind(parameterIndex, sbuf.toString(), PG_TIMESTAMPTZ);