-
Notifications
You must be signed in to change notification settings - Fork 534
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
Proper way to build a DateTime from another DateTime's Date #1508
Comments
Maybe something similar to #1447 (comment)? |
As a bit of explanation: We don't have a more convenient solution (yet). |
Thanks for your response! |
Hello,
I have a use case where I need to build a
DateTime
fromLocal::now()
using itsDate
component and some futureTime
, respecting the timezone. This is trivially done usingDateTime::date()
, but this function has been deprecated. What would be the recommended way to do this (date_naive()
does not work here as it's stripped of the original timezone).Thanks,
The text was updated successfully, but these errors were encountered: