https://bz.apache.org/bugzilla/show_bug.cgi?id=64070

            Bug ID: 64070
           Summary: _timeshift function does not work with offset
                    formatters
           Product: JMeter
           Version: 5.2
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: JMETER_6.0.0

The _timeshift function does not work with a formatter of the form
"yyyy-MM-DD'T'HH:mm:ssXXX". This is due to the fact that internally a
LocalDateTime is used instead of a ZonedDateTime.
An exception java.time.temporal.UnsupportedTemporalTypeException with text
Unsupported field: OffsetSeconds
is thrown.

Can be easily tested with the function helper

${__timeShift(yyyy-MM-DD'T'dd:HH:mm:ss.SSSZ,,P2D,,)}

I think this could be very easily fixed and make a great tool even greater.
As a workaround I created a bean shell script working with ZonedDateTime.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to