You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extra note: The actual behavior part of this is what we are doing in AR-JDBC. We are unsure if we are constructing this Time instance improperly or our strftime is broken in some way that this code path exposes.
Ok I think this is won't fix. The formatter relies on dt.getMillisOfSecond() to return millis and we set it to 0 from the parsing code above (which sets either nanos or millis but not both). So we need both values for our fstrtime method to work. This is an error in ARJDBC.
Environment
jruby 9.1.16.0 (2.3.3) 2018-02-21 8f3f95a Java HotSpot(TM) 64-Bit Server VM 25.77-b03 on 1.8.0_77-b03 +jit [darwin-x86_64]
java version "1.8.0_77"
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)
Expected Behavior
When building RubyTime objects with a DateTime object, it should correctly handle string formatting sub-second values.
Actual Behavior
It shifts the values to the right 3 decimal places:
The text was updated successfully, but these errors were encountered: