Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Conversation

StanleyGoldman
Copy link
Contributor

Fixes: #447

Cache objects were being serialized with their date times just being ToStringd.
This works fine most of the time, but of course it is not consistent.

Failure to do so will lead to inconsistent results, especially with
users that have a custom system-wide date time string.
Copy link
Contributor

@jcansdale jcansdale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was wondering if .ToString(CultureInfo.InvariantCulture) might work just as well?

@drguthals
Copy link

You also removed using Octokit in this PR. Any reason for that?

@StanleyGoldman
Copy link
Contributor Author

@jcansdale That does not enforce the ISO8601 format. From what I understand if you do not set a format you end up with your system global format. Which in the case of some users, like @shana, who prefer a 24-Hour time format, this leads to an output that is not among the formats that are parsed for by default.

@StanleyGoldman
Copy link
Contributor Author

@sguthals It was not intentional. I think Resharper removed it, but the namespace was not used so it's a null change.

Copy link
Contributor

@jcansdale jcansdale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@drguthals
Copy link

Looks good!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants