Skip to content

Consider semantics for serializing DateTimeOffset #9

@dtaylorus

Description

@dtaylorus

Currently, WriteValue(DateTimeOffset) writes only the UtcTicks portion of the DateTimeOffset and ReadValueAsDateTimeOffset() returns a DateTimeOffset with an offset of TimeSpan.Zero (UTC).

Consider that this may cause some confusion if a DateTimeOffset is serialized with a local timezone offset and then deserialized as UTC.

Metadata

Metadata

Assignees

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