Skip to content

Please add support for converting time::UtcDateTime to/from SQL values under the time feature #1843

Description

@LikeLakers2

Hi! I've been using UtcDateTimes to store dates in a database.

However, for all the time crate types that rusqlite supports under the time feature, UtcDateTime is not one of them - despite other time-like crates having support for their types that assume a timezone of UTC.

While it's not necessarily hard to write a newtype that allows me to store a UtcDateTime (in fact, I've already written one), it would be nice for rusqlite to support UtcDateTime without extra effort for me.

If this gets added to rusqlite, thank you in advance. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions