Skip to content

feat: Add support for time::PrimitiveDateTime#322

Merged
Pr0methean merged 1 commit intozip-rs:masterfrom
sorairolake:support-primitive-date-time
Mar 23, 2025
Merged

feat: Add support for time::PrimitiveDateTime#322
Pr0methean merged 1 commit intozip-rs:masterfrom
sorairolake:support-primitive-date-time

Conversation

@sorairolake
Copy link
Copy Markdown
Contributor

Mark TryFrom<OffsetDateTime> for DateTime and TryFrom<DateTime> for OffsetDateTime as deprecated. The deprecated attribute have no effect on trait implementations. However, I think it would be better for this attribute to exist for humans, so I add it. I think it would be better to remove TryFrom<OffsetDateTime> for DateTime and TryFrom<DateTime> for OffsetDateTime in the future.

Closes #321

Pr0methean
Pr0methean previously approved these changes Mar 22, 2025
@Pr0methean Pr0methean added this pull request to the merge queue Mar 22, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Mar 22, 2025
Mark `TryFrom<OffsetDateTime> for DateTime` and
`TryFrom<DateTime> for OffsetDateTime` as deprecated.
@sorairolake
Copy link
Copy Markdown
Contributor Author

Resolve conflicts.

@Pr0methean Pr0methean enabled auto-merge March 23, 2025 01:49
@Pr0methean Pr0methean added this pull request to the merge queue Mar 23, 2025
Merged via the queue into zip-rs:master with commit 7613e6b Mar 23, 2025
39 checks passed
@Pr0methean Pr0methean mentioned this pull request Mar 23, 2025
@sorairolake sorairolake deleted the support-primitive-date-time branch March 23, 2025 05:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use time::PrimitiveDateTime instead of time::OffsetDateTime

2 participants