Can I customize timestamp data? #3122
-
I'm integrating payload into an already active data model. The good: The Bad: Is there some way to change payload defaults to read/write those as integers? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
UPDATE: Looking at global hooks, does that seem like the way? Can't find docs on where to implement global hooks. Any helps is appreciated. |
Beta Was this translation helpful? Give feedback.
-
Now trying a custom field with field hooks like so:
So this is pretty cool and almost works. I get the date rendered in a date field in the object (i'll probably hide it later), but when I save I get an error complaining about it being a number, but from my understanding it should pass validation before I convert it to a number in the beforeChange hook. Any idea why that happens? |
Beta Was this translation helpful? Give feedback.
-
I got it working!
|
Beta Was this translation helpful? Give feedback.
I got it working!