Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upPlease create a nowtz for working with Timestamptz #1752
Comments
lholden
changed the title from
Please create a nowtz for working with timestamps having timezones.
to
Please create a nowtz for working with Timestamptz
Jun 1, 2018
This comment has been minimized.
|
After implementing this, I'm not sure it really makes sense to have this in Diesel. The use case feels very niche, and not something that I think is worth maintaining in our own codebase -- Especially since you can have this in your own code base: fn nowtz() -> AsExprOf<now, Timestamptz> {
now.into_sql()
} |
sgrif
closed this
Sep 12, 2018
This comment has been minimized.
berkus
commented
Sep 13, 2018
|
Ok, will add this to my codebase.. And probably many more will.. Is it possible to add this simple function in diesel just once instead? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
lholden commentedJun 1, 2018
Due to a lack of implicit conversions currently if one wants to perform something such as
Where accessed_at is a
Timestamptz, one instead has to write:Adding something like
nowtzto the Diesel DSL would allow us to instead write: