Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page OutputCache wrong expire date format #4905

Closed
thienvc opened this issue Nov 6, 2021 · 1 comment · Fixed by #4915
Closed

Page OutputCache wrong expire date format #4905

thienvc opened this issue Nov 6, 2021 · 1 comment · Fixed by #4915

Comments

@thienvc
Copy link
Contributor

thienvc commented Nov 6, 2021

using (var oWrite = File.CreateText(attribFile))
{
oWrite.WriteLine(DateTime.UtcNow.Add(duration).ToString());
oWrite.Close();
}

Needs to be modified to: DateTime.UtcNow.Add(duration).ToString(CultureInfo.InvariantCulture)

@bdukes bdukes linked a pull request Nov 22, 2021 that will close this issue
@thienvc
Copy link
Contributor Author

thienvc commented Nov 23, 2021

@bdukes
To fix this problem actually have to fix it here too:

oWrite.WriteLine(this._cacheExpiration.ToString());

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 a pull request may close this issue.

1 participant