Uploaded image for project: 'Camunda Optimize'
  1. Camunda Optimize
  2. OPT-1851

Ensure time zone defaults to system default

    Details

    • Type: Task
    • Status: Done
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4.0, 2.4.0-alpha2
    • Component/s: backend
    • Labels:
      None

      Description

      AT:

      • AbstractProcessInstanceDurationGroupByStartDateCommand returns system default compliant date histogram buckets instead of UTC buckets
      • no explicit UTC usage in any dateHistrogram related tests
      • use default timezone also when creating histogram buckets not only when formatting the result (to avoid +1 hour workarounds when formatting expected dates in tests)

      Notes:
      Right now, we have several tests where we set the time zone to UTC, which does not makes sense and is hard to understand, e.g.:
      OffsetDateTime.now().withOffsetSameInstant(ZoneOffset.UTC)
      see here
      considering we do that in ProcessInstanceDuration* related tests but for instance not in tests for CountProcessInstanceFrequency*.

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              johannes.heinemann Johannes Heinemann
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: