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

read unix epoch timestamps with date widget. #1154

Open
harshil1507 opened this issue Dec 9, 2024 · 0 comments
Open

read unix epoch timestamps with date widget. #1154

harshil1507 opened this issue Dec 9, 2024 · 0 comments

Comments

@harshil1507
Copy link

Is your feature request related to a problem? Please describe.
Need a way to read unix timestamps when the field is of date type.

Describe the solution you'd like
A flag isEpoch or a function to override how date values are converted, readValue: () => (...)

Describe alternatives you've considered
Tried overriding the widget using custom factory where DateTimeSelect is a simple wrapper for Antd date picker which converts epoch to human readable time format.

factory: (props) => {
      return <DateTimeSelect {...props} />;
    },

Additional context
I keep on getting this error: "Can't convert value 1733202000 as Date"

With the custom widget(factory) applied, I get the value as undefined
image

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

No branches or pull requests

1 participant