Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xray-reporter.js . getdate() 5.5 as TimeZone resulting in incorrect import to xray #14

Open
wolfy027 opened this issue Nov 13, 2019 · 1 comment

Comments

@wolfy027
Copy link

Executed 18 of 18 specs SUCCESS in 2 mins 23 secs.
Request Url:
https://sandbox.xpand-it.com/rest/raven/1.0/import/execution

Request Body

{
  info: { description: undefined, version: '1.0', summary: 'Google Chrome' },
  tests: [
    {
      testKey: 'CALC-1965',
      start: '2019-11-13T13:20:52+05.5:00',
      steps: [Array],
      status: 'PASS',
      finish: '2019-11-13T13:23:15+05.5:00'
    }
  ]
}
(node:43599) UnhandledPromiseRejectionWarning: Error: Error: java.lang.IllegalArgumentException: Invalid format: "2019-11-13T13:20:52+05.5:00" is malformed at ".5:00"
        at org.joda.time.format.DateTimeFormatter.parseDateTime(DateTimeFormatter.java:899)
        at com.xpandit.raven.c.R.a(Unknown Source)
        at com.xpandit.raven.service.executionresult.impl.ExecutionResultImportServiceImpl.a(Unknown Source)
@lukas-reineke
Copy link
Owner

Thanks for the bug report.
Indeed this is broken for timezones that don't have a full number offset.

PRs to fix this are welcome 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants