Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-6505

CalendarBasedTimeout needs to trim whitespaces in ScheduleExpression.timezone

    Details

      Description

      When creating a calendar-based timer with a timezone id having leading/trailiing whitespaces, the specified timezone is ignored and the system default timezone is used instead.

      Although there is a warning, users may not notice it and would still expect the requested timezone to be used.

      The logged warning:

      Unable to find source-code formatter for language: text. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      13:18:14,259 WARN  [org.jboss.as.ejb3] (default task-42) WFLYEJB0015: Unknown timezone id:
                                                  US/Eastern
                                               found in schedule expression. Ignoring it and using server's timezone: America/New_York
      

      The user-provided timezone 'US/Eastern' is a valid timezone (after trimming).

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                cfang Cheng Fang
                Reporter:
                cfang Cheng Fang
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: