Skip to content

Deserialize DateTimes as UTC#164

Merged
ironfede merged 2 commits intoopenmcdf:masterfrom
Visionaid-International-Ltd:utc
Oct 2, 2024
Merged

Deserialize DateTimes as UTC#164
ironfede merged 2 commits intoopenmcdf:masterfrom
Visionaid-International-Ltd:utc

Conversation

@jeremy-visionaid
Copy link
Copy Markdown
Collaborator

Fixes #161 by returning DateTimes as UTC

Also uses a monotonic clock for performance measurements.

The actual file time should be largely unchanged by this, as times were
already implicitly converted to UTC by To/FromDateTime.

With this change, the time is considered to be UTC if DateTime.Kind is
unspecified, and it returns a UTC DateTime instead of local DateTime when
loading.
@ironfede ironfede merged commit 1cbae7b into openmcdf:master Oct 2, 2024
@jeremy-visionaid jeremy-visionaid deleted the utc branch October 16, 2024 07:36
This was referenced Apr 23, 2026
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.

Creation and modification times should be UTC

2 participants