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
How to get "now" with DateTime<Timezone>? #624
Comments
I'd like to mention that many of us use DateTimeWithTimezone as DB storage by default but optionally still log UTC based date times which is just +0. The current |
@epipheus PR welcome! |
Yes, this is the idiomatic way to do it. #1030 added |
Analogous to
Utc::now
, I'd like to get now as aDateTime<Timezone>
for a given timezone, would this be the idiomatic way to do so?Similar to #169, I struggled a lot more than I think I ought to have to try and do some relatively straightforward seeming tasks.
I'd love to:
The text was updated successfully, but these errors were encountered: