Skip to content

NodaTimeDefaultJsonConverter doesn't seem to work with Interval #135

Description

@kaydensigh

Hi, I can't seem to get NodaTimeDefaultJsonConverter to work with Interval.

I added kaydensigh@ab0aef9 to NodaTimeDefaultJsonConverterAttributeTest.RoundTrip and the test fails with:

Message: 
  Assert.That(actual, Is.EqualTo(expected))
  Expected: 2023-05-29T14:11:23Z/2025-01-02T03:04:05Z
  But was:  1970-01-01T00:00:00Z/1970-01-01T00:00:00Z

Stack Trace: 
ClassicAssert.AreEqual(Object expected, Object actual)
NodaTimeDefaultJsonConverterAttributeTest.Roundtrip() line 32
1)    at NUnit.Framework.Legacy.ClassicAssert.AreEqual(Object expected, Object actual)
NodaTimeDefaultJsonConverterAttributeTest.Roundtrip() line 32

Is this expected?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions