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

functions to parse date, time and datetime with given schema #798

Open
jonathanlukas opened this issue Jan 23, 2024 · 1 comment
Open

functions to parse date, time and datetime with given schema #798

jonathanlukas opened this issue Jan 23, 2024 · 1 comment
Labels
scope: Camunda 8 Required in the context of Camunda 8 support relates to a support case type: enhancement

Comments

@jonathanlukas
Copy link
Contributor

Is your feature request related to a problem? Please describe.

No need for a workaround like this: https://camunda.github.io/feel-scala/docs/learn/samples/temporal-samples/#change-the-format-of-dates

Describe the solution you'd like

We would like to have a feel function that parses a string to a date, time or datetime with a given schema.

Example: date("18.01.2024","dd.MM.yyyy")

Related issues

@saig0 saig0 added support relates to a support case scope: Camunda 8 Required in the context of Camunda 8 labels Jan 25, 2024
@saig0 saig0 removed their assignment Jan 25, 2024
@bastiankoerber
Copy link

we have another customer / partner who is requesting this feature.
He wants to use it in our connector templates:

If we would have this feature in place, he could use a custom template + REST Connector.

Right now, we are forcing him to fork our REST Connector and add custom changes (which is not ideal).

Context:

Using the feel function now() produces serialized json for the rest connector that looks like 2024-03-11T16:38:33Z[GMT]" and Azure eventgrid won’t consume the timezone portion of that ([GMT]). It requires an iso date-time string in zulu time, without timezone, like this: “2024-03-11T16:38:33Z”
Really there’s 2 potential issues with getting a timestamp

  1. Azure Event grid requires that the “eventTime” field of an event message contains a time expressed in UTC, but there’s no way to specify the timezone/offset in which you want to express a timestamp. By happy coincidence, the FEEL now() function seems to be producing a UTC timestamp, but this is an undocumented feature that might happen to be because of a setting on the cluster, but certainly not something I can depend on in perpetuity.
  2. The timezone info is expressed in the format string, and there’s no way to specify this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: Camunda 8 Required in the context of Camunda 8 support relates to a support case type: enhancement
Projects
None yet
Development

No branches or pull requests

3 participants