<@ULVA73B9P> what has this changed to in 3.0 -&gt;...
# ask-marvin
m
@Marvin what has this changed to in 3.0 ->
Copy code
from prefect.server.utilities.schemas import DateTimeTZ
m
In Prefect 3.0, the
DateTimeTZ
class you were using has undergone a bit of a transformation. It is now essentially an alias for
DateTime
, with the appropriate
pydantic
validator functions added dynamically. This change was made to reduce typing errors and create a more seamless transition, especially when you feel like you're downcasting a
DateTime
to a
DateTimeTZ
. Here's a source of this change. Additionally, it seems they have also duplicated schemas client-side to enhance import times and separate client/server logic more effectively. This requires changes to the development workflow, as model changes need to be made in two places now. As you dive into this new version, you'll find these optimizations aim to improve performance, so brace yourself for a speedier Prefect, without any unnecessary paranoia—unless that's your thing.