GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — For net6, support DateOnly and TimeOnly · Issue #1240 · MessagePack-CSharp/MessagePack-CSharp

For net6, support DateOnly and TimeOnly #1240

New issue
Copy link
New issue
Copy link
Closed
Closed
For net6, support DateOnly and TimeOnly#1240
Copy link
Assignees
AArnott
Labels
enhancement
Milestone
v2.4

Description

@AArnott
AArnott
opened on May 17, 2021
Issue body actions

Add built-in support on .NET 6 for the new DateOnly and TimeOnly types as described here: dotnet/runtime#50980

Reacted by saxmaster79, Aleksandr and Wasenshi
Reacted by Energy

Activity

  1. AArnott
    added
    enhancement
    on May 17, 2021
  2. simonziegler commented on Jun 18, 2021

    @simonziegler
    simonziegler
    on Jun 18, 2021
    More actions

    Hi @AArnott - I'm keen to use DateOnly in my project as soon as possible. I need to cut over from DateTime to DateOnly before I commit to a database scheme ahead of imminent release. MessagePack is central to my project and I wonder if you can suggest a work around to allow me to use DateOnly before MessagePack is ready. Here is the exception I get indicating the relevant resolver:

    MessagePack.MessagePackSerializationException: Failed to serialize MyProject.MyClass value.
     ---> MessagePack.FormatterNotRegisteredException: System.DateOnly is not registered in resolver: MessagePack.Resolvers.CompositeResolver+CachingResolver
    

    Please ignore this - I inspected what MessagePack does for DateTime and built my own formatter and resolver. Instead of DateTime.ToBinary() I used DateOnly.Daynumber, which is an int.

    Reacted by Andrew Arnott and w3lld0ne
  3. github-actions commented on Sep 17, 2021

    @github-actions
    github-actionsBot
    on Sep 17, 2021
    Contributor
    More actions

    This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days.

  4. github-actions
    added
    no-issue-activity
    on Sep 17, 2021
  5. github-actions
    closed this as completedon Sep 22, 2021
  6. kzu commented on Dec 13, 2021

    @kzu
    kzu
    on Dec 13, 2021
    Contributor
    More actions

    I think this issue should be reopened and actually fixed :)

  7. AArnott
    added
    help wanted
    and removed
    no-issue-activity
    on Dec 13, 2021
  8. AArnott
    reopened this on Dec 13, 2021
  9. ordinaryorange commented on Jan 24, 2022

    @ordinaryorange
    ordinaryorange
    on Jan 24, 2022
    More actions

    I see DateTime uses the .ToBinary() method during serialization.
    Under the hood .ToBinary() attempts some conversions to account for localtime, but DateOnly has no concept of localtime/UTC etc
    DateOnly does not have a .ToBinary() equiv so the easiest way out of this to simply use the DayNumber property and just serialize the int.

    Reacted by w3lld0ne
  10. github-actions commented on Apr 26, 2022

    @github-actions
    github-actionsBot
    on Apr 26, 2022
    Contributor
    More actions

    This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days.

  11. github-actions
    added
    no-issue-activity
    on Apr 26, 2022
  12. AArnott
    self-assigned this
    on Apr 26, 2022
  13. AArnott
    removed
    no-issue-activity
    on Apr 26, 2022
  14. AArnott
    added a commit that references this issue on Apr 26, 2022

    Add built-in support for .NET 6 `DateOnly` and `TimeOnly` types

    This issue will close once commit 13637a1 is merged into the 'master' branch.
    13637a1
  15. AArnott commented on Apr 26, 2022

    @AArnott
    AArnott
    on Apr 26, 2022
    CollaboratorAuthor
    More actions

    I invite anyone interested in this feature to review my PR and comment on the format I'm using for these types.

  16. AArnott
    added 3 commits that reference this issue on May 24, 2022

    Add built-in support for .NET 6 `DateOnly` and `TimeOnly` types

    This issue will close once commit 1974603 is merged into the 'master' branch.
    1974603

    Add built-in support for .NET 6 `DateOnly` and `TimeOnly` types

    This issue will close once commit d255f30 is merged into the 'master' branch.
    d255f30

    Add built-in support for .NET 6 `DateOnly` and `TimeOnly` types

    This issue will close once commit c7ef724 is merged into the 'master' branch.
    c7ef724
  17. AArnott
    added this to the v2.4 milestone on May 24, 2022
  18. AArnott
    removed
    help wanted
    on May 24, 2022
  19. AArnott
    closed this as completedon May 24, 2022
  20. PatrickDRusk commented on Jun 6, 2022

    @PatrickDRusk
    PatrickDRusk
    on Jun 6, 2022
    More actions

    Is there a schedule by when this will appear in a Nuget package?

  21. AArnott commented on Jun 7, 2022

    @AArnott
    AArnott
    on Jun 7, 2022
    CollaboratorAuthor
    More actions

    No. It's kind of on an on-demand basis. So your vote of interest is enough to move the wheel a bit. I'll try to review other active issues to see if we have anything else we can roll into another prerelease of 2.4.

  22. PatrickDRusk commented on Jun 9, 2022

    @PatrickDRusk
    PatrickDRusk
    on Jun 9, 2022
    More actions

    It would be much appreciated. Thanks.

  23. AArnott commented on Jun 9, 2022

    @AArnott
    AArnott
    on Jun 9, 2022
    CollaboratorAuthor
    More actions

    It's now out. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @AArnott
    AArnott

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    • v2.4

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.